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

InvalidateFileStateCache

Invalidates one or more items in the state cache.

Declaration

Source position: lazfilecache.pas line 109

procedure InvalidateFileStateCache(

  const Filename: string = ''

);

Arguments

Filename

  

Name for the file or directory invalidated in the cache.

Description

Calls the IncreaseTimeStamp method in FileStateCache using the value in FileName as the target. When FileName exists in the cache, it is the only item affected in the method. If FileName is an empty string (''), all items in the cache are invalidated.

See also

FileStateCache

  

Unit global variable with the class instance for the state caching mechanism.

TFileStateCache.IncreaseTimeStamp

  

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

TFileStateCache.TimeStamp

  

Timestamp (or revision) value for the cache storage.

TFileStateCacheItem.TimeStamp

  

Timestamp for the cached item.


Version 4.0 Generated 2025-05-03 Home