Returns the cached value if key is in the cache; throws otherwise. This marks the item as recently used.
Returns a pointer to the cached value if key is in the cache; null otherwise. The pointer may get invalidated by updating the cache. This marks the item as recently used.
Returns the cached value if key is in the cache; throws otherwise. This marks the item as recently used.
Returns true if key is in the cache.
Iterate over the entries in the cache. This does not count as an access.
Cache value at key. Updates the value if key is already in the cache. This marks the item as recently used.
Cache value at key. Updates the value if key is already in the cache. This marks the item as recently used.
Returns the number of items in the cache.
Returns a pointer to the cached value if key is in the cache; null otherwise. The pointer may get invalidated by updating the cache. This marks the item as recently used.