TCache.AddNew function
Add a new item to the list.
Declaration
function AddNew(AData: Pointer): IntegerArguments
AData | Data pointer to add to the list. |
Function result
Position at which item is added to the list.
Description
AddNew adds a new item to the list: in difference with the
Add call, no checking is performed to
see whether the item is already in the list.
The function returns the index at which the item was added.
If the maximum number of slots is reached, and a new item is being added, the least used item is dropped from the list.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
