A simple non-persistent cache with timeout
Get value for the given key
If no value is found or the value is older than the allowed timeout, the default value will be returned.
Get the timeout value
Invalidate the given key, or all key/values if no key is passed.
Return all cached keys and values
Returns a sequence of (key, value) tuples.
Return all cache keys
Store a key/value pair
Set a timeout value in seconds
Return all cached values
Simple module-level cache protected by a lock serializing access
Get value for the given key
If no value is found the default value will be returned.
Get the timeout value
Invalidate the given key, or all key/values if no key is passed.
Return all cached keys and values
Returns a sequence of (key, value) tuples.
Return all cache keys
Store a key/value pair
Set a timeout value in seconds
Return all cached values