Package entropy :: Package db :: Module cache :: Class EntropyRepositoryCacher

Class EntropyRepositoryCacher

source code


Tiny singleton-based helper class used by EntropyRepository in order to keep cached items in RAM.

Instance Methods
 
init_singleton(self) source code
 
clear(self)
Clear all the cached items
source code
 
clear_key(self, key)
Clear just the cached item at key (hash table).
source code
 
keys(self)
Return a list of available cache keys
source code
 
discard(self, key)
Discard all the cache items with hash table key starting with "key".
source code
 
get(self, key)
Get the cached item, if exists.
source code
 
set(self, key, value)
Set item in cache.
source code

Inherited from core.Singleton: __init__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods

Inherited from core.Singleton: __new__

Properties

Inherited from object: __class__