Cache.create

Creates a cache item and sets the create time. 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)
T*
create
(
hash_t key
)
out (val) { assert (val !is null); }

Parameters

key hash_t

item key

Return Value

Type: T*

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

Meta