ExpiringCache.this

Constructor.

class ExpiringCache(size_t ValueSize = 0)
this
(
size_t max_items
,
time_t lifetime
,
time_t empty_lifetime = 0
)

Parameters

max_items size_t

maximum number of items in the cache, set once, cannot be changed

lifetime time_t

lifetime for non-empty items in seconds; may be changed at any time. This value must be at least 1.

empty_lifetime time_t

lifetime for empty items in seconds. If set to 0 (default), will be same as regular lifetime

Meta