Constructor.
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.)
Gets an item from the cache. A pointer to the item is returned, if found. If the item exists in the cache, its update time is updated.
Gets an item from the cache or creates it if not already existing. If the item exists in the cache, its update time is updated, otherwise its create time is set.
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.)
type of item to store in cache
if true, each cache item is stored with its create time, in addition to its last access time
Typed cache class template. Stores items of a particular type.