ExpiringLRUCache.exists

Checks whether an item exists in the cache and updates its access time. If the life time of the item has expired, it is removed.

  1. bool exists(hash_t key, bool expired)
  2. bool exists(hash_t key)
    class ExpiringLRUCache(T = void[])
    override
    bool
    exists
    (
    hash_t key
    )

Parameters

key hash_t

key to lookup

Return Value

Type: bool

true if item exists in cache and its life time is not yet expired.

Meta