Sign in Join
FPDoc Onlineexperiment

TCache.OnFreeSlot property

Member of TCachepublicIn unit CacheCls

Event called when a slot is freed.

Declaration

pascal
property OnFreeSlot: TOnFreeSlot read FOnFreeSlot write FOnFreeSlot;

Description

OnFreeSlot is called when an item needs to be freed, i.e. when a new item is added to a full list, and the least recent used item needs to be dropped from the list.

The cache class instance and the index of the item to be removed are passed to the callback.

See also

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