Cache.access

Obtains the cache item that corresponds to node and updates the access time. If realtime is enabled, time is expected to be equal to or greater than the time stored in node. If disabled and the access time is less, the node will not be updated and null returned.

class Cache(size_t ValueSize = 0, bool TrackCreateTimes = false)
protected
access
(
ref TimeToIndex.Node node
,
out time_t access_time
)
out (item) { assert (item !is null); }

Parameters

node TimeToIndex.Node

time-to-index tree node

access_time time_t

access time

Return Value

Type: CacheItem*

the cache item or a null if realtime is disabled and the access time is less than the access time in the node.

Out: If realtime is enabled, the returned pointer is never null.

Meta