MemoryCache
MemoryCache#
- class squirro.lib.nlp.utils.cache.MemoryCache(copy=True)#
Bases:
squirro.lib.nlp.utils.cache.base.Cache
A simplistic cache which stores objects in memory.
The copy parameter specifies whether objects within the cache should be copied to prevent modifying cached values from outside.
Methods Summary
delete
(key)- rtype
exists
(key)- rtype
get
(key)get_all
()set
(key, value)- rtype
Methods Documentation