Sign in Join
FPDoc Onlineexperiment

TFileStateCache.IncreaseTimeStamp procedure

Member of TFileStateCachepublicIn unit LazFileCache

Increments the change counter or updates an item in the state cache.

Declaration

pascal
procedure IncreaseTimeStamp(const AFilename: string)

Arguments

AFilename

Name for the file or directory invalidated in the cache, or an empty string to invalidate all cached items.

Description

AFileName contains the file or directory name to update in the storage for the cache.

When AFileName is an empty string (''), the entire cache is invalidated by incrementing the change counter in the TimeStamp property. If a value is provided in AFileName, a single item is invalidated in the cache storage. The FindFile method is called to retrieve the TFileStateCacheItem entry and to reset the values in its TestedFlags property.

IncreaseTimeStamp signals each of the assigned change handlers for the class instance using the value in AFileName as an argument.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.