Interface GetOptions<K, V, FC>

Options that may be passed to the LRUCache#get method.

Type Parameters

  • K

  • V

  • FC

Hierarchy

  • Pick<OptionsBase<K, V, FC>, "allowStale" | "updateAgeOnGet" | "noDeleteOnStaleGet">
    • GetOptions

Properties

allowStale?: boolean

Allow LRUCache#get and LRUCache#fetch calls to return stale data, if available.

noDeleteOnStaleGet?: boolean

Do not delete stale items when they are retrieved with LRUCache#get.

Note that the get return value will still be undefined unless OptionsBase.allowStale is true.

status?: Status<V>
updateAgeOnGet?: boolean

Update the age of items on LRUCache#get, renewing their TTL

Has no effect if OptionsBase.ttl is not set.

Default

false

Generated using TypeDoc