happyly.caching.cacher.Cacher

class happyly.caching.cacher.Cacher

Bases: abc.ABC

Abstract base class which defines interface of any caching component to be used via CacheByRequestIdMixin or similar mixin.

add(data, key)

Add the provided data to cache and store it by the provided key.

get(key)

Returns data which is stored in cache by the provided key.

remove(key)

Remove data from cache which is stored by the provided key.

add(data, key)

Add the provided data to cache and store it by the provided key.

remove(key)

Remove data from cache which is stored by the provided key.

get(key)

Returns data which is stored in cache by the provided key.