Cache.put

Puts an item into the cache. If the cache is full, the oldest item is replaced with the new item. (In the case where several items are equally old, the choice of which one to be replaced is made arbitrarily.)

class Cache(T, bool TrackCreateTimes = false)
bool
put
(
hash_t key
,)

Parameters

key hash_t

item key

value T

item to store in cache

Return Value

Type: bool

true if a record was updated / overwritten, false if a new record was added

Meta