Sign in Join
FPDoc Onlineexperiment

CacheCls unit

Unit implementing cache class.

The CacheCls unit implements a caching class: similar to a hash class, it can be used to cache data, associated with string values (keys). The class is calls TCache

Classes and records

ECacheErrorclassException class used in the cachecls unit.
TCacheclassCache class.
TCacheSlotrecordRecord representing 1 item in the cache list.

Types

PCacheSlottypePointer to TCacheSlot record.
PCacheSlotArraytypePointer to TCacheSlotArray array.
TCacheSlotArraytypeArray of TCacheSlot.
TOnFreeSlotprocedure typeCallback called when a slot must be freed.
TOnIsDataEqualprocedure typeCallback type to check whether 2 data types are equal.

Resource strings

SInvalidIndexresource stringMessage shown when an invalid index is passed.

Uses

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