Abstract class for cache implementations. Main function is now to
provide referenced api documentation.
Use CacheInRam or CacheOnDisk instead which are derived from this
class.
|
|
__call__(self,
key,
f,
time_expire=300)
Tries retrieve the value corresponding to `key` from the cache of the
object exists and if it did not expire, else it called the function `f`
and stores the output in the cache corresponding to `key`. |
source code
|
|
|
|
|
|
|
_clear(self,
storage,
regex)
Auxiliary function called by `clear` to search and clear cache
entries |
source code
|
|
|
|
clear(self,
regex=global_settings.applications_parent)
Clears the cache of all keys that match the provided regular expression. |
source code
|
|
|
|
increment(self,
key,
value=global_settings.applications_parent)
Increments the cached value for the given key by the amount in value... |
source code
|
|
|
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__str__
|