Modules
- class dataflake.cache.simple.SimpleCache
Simple instance-level cache
- get(key, default=None)
Get value for the given key
If no value is found the default value will be returned.
- invalidate(key=None)
Invalidate the given key, or all key/values if no key is passed.
- items()
Return all cached keys and values
Returns a sequence of (key, value) tuples.
- keys()
Return all cache keys
- set(key, value)
Store a key/value pair
- values()
Return all cached values
- class dataflake.cache.simple.LockingSimpleCache
Simple module-level cache protected by a lock serializing access
- get(key, default=None)
Get value for the given key
If no value is found the default value will be returned.
- invalidate(key=None)
Invalidate the given key, or all key/values if no key is passed.
- items()
Return all cached keys and values
Returns a sequence of (key, value) tuples.
- keys()
Return all cache keys
- set(key, value)
Store a key/value pair
- values()
Return all cached values
- class dataflake.cache.timeout.TimeoutCache
A simple non-persistent cache with timeout
- get(key, default=None)
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.
- getTimeout()
Get the timeout value
- invalidate(key=None)
Invalidate the given key, or all key/values if no key is passed.
- items()
Return all cached keys and values
Returns a sequence of (key, value) tuples.
- keys()
Return all cache keys
- set(key, object)
Store a key/value pair
- setTimeout(timeout)
Set a timeout value in seconds
- values()
Return all cached values
- class dataflake.cache.timeout.LockingTimeoutCache
Simple module-level cache protected by a lock serializing access
- get(key, default=None)
Get value for the given key
If no value is found the default value will be returned.
- getTimeout()
Get the timeout value
- invalidate(key=None)
Invalidate the given key, or all key/values if no key is passed.
- items()
Return all cached keys and values
Returns a sequence of (key, value) tuples.
- keys()
Return all cache keys
- set(key, value)
Store a key/value pair
- setTimeout(timeout)
Set a timeout value in seconds
- values()
Return all cached values