ICache.get_

Obtains the index of the cache item that corresponds to key and updates the access time. If realtime is enabled and key could be found, access_time is expected to be at least the time value stored in node. If disabled and access_time is less, the result is the same as if key could not be found.

class ICache
protected
size_t
get_
(
hash_t key
,
out time_t access_time
)

Parameters

key hash_t

time-to-index tree key

access_time time_t

access time

Return Value

Type: size_t

the index of the corresponding cache item or a value of at least this.length if key could not be found.

Meta