PriorityCache.get

Obtains the item that corresponds a key. Returns null if the key doesn't exist.

class PriorityCache(T)
T*
get
(
hash_t key
,
bool track_misses = true
)

Parameters

key hash_t

the item key

track_misses bool

flags whether not finding the item should count as a cache miss

Return Value

Type: T*

the corresponding cache item or null if the key didn't exist.

Meta