HTTP Cache Objects

The cache object API for implementing caches. The default is just a dictionary, which in turns means it is not threadsafe for writing.

class sima.lib.cache.BaseCache[source]
delete(key)[source]

Remove cache value

get(key)[source]

Get cache value

set(key, value)[source]

Set cache value

class sima.lib.cache.DictCache(init_dict=None)[source]
delete(key)[source]

Remove cache value

get(key)[source]

Get cache value

set(key, value)[source]

Set cache value

class sima.lib.cache.FileCache(directory, forever=False)[source]
delete(key)[source]
encode(val)[source]
get(key)[source]
set(key, value)[source]