[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'LazFileCache' (#lazutils)

TFileStateCache.IncreaseTimeStamp

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

Declaration

Source position: lazfilecache.pas line 75

public procedure TFileStateCache.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

TFileStateCache.FindFile

  

Gets (or creates) the cached item with the specified name.

TFileStateCache.TimeStamp

  

Timestamp (or revision) value for the cache storage.

TFileStateCacheItem.Filename

  

Name for the file or directory in the cache item.

TFileStateCacheItem.PhysicalFilename

  

Physical name for the file or directory in the cache item.

TFileStateCacheItem.TestedFlags

  

Contains status flags that have been tested for the cached item.


Version 4.0 Generated 2025-05-03 Home