Create a deep copy of the cache.
Create a new cache with a default expiration value for newly added cache items.
Create a new cache with a default expiration value for newly added cache items.
Items that are added to the cache without an explicit expiration value (using insert) will be inserted with the default expiration value.
If the specified default expiration value is None, items inserted by insert will never expire.
Delete an item from the cache.
Delete an item from the cache. Won't do anything if the item is not present.
Insert an item in the cache, using the default expiration value of the cache.
Insert an item in the cache, with an explicit expiration value.
Insert an item in the cache, with an explicit expiration value.
If the expiration value is None, the item will never expire. The default expiration value of the cache is ignored.
The expiration value is relative to the current clockMonotonic time, i.e. it will be automatically added to the result of clockMonotonic for the supplied unit.
Return all keys present in the cache, including expired items.
Lookup an item with the given key, and delete it if it is expired.
Lookup an item with the given key, and delete it if it is expired.
The function will only return a value if it is present in the cache and if the item is not expired.
The function will eagerly delete the item from the cache if it is expired.
Lookup an item with the given key, but don't delete it if it is expired.
Lookup an item with the given key, but don't delete it if it is expired.
The function will only return a value if it is present in the cache and if the item is not expired.
The function will not delete the item from the cache.
Delete all items that are expired.
Delete all items that are expired.
This is one big atomic operation.
Change the default expiration value of newly added cache items.
Change the default expiration value of newly added cache items. Shares an underlying reference with the other cache. Use copyCache if you want different caches.
Return the size of the cache, including expired items.