my_utilities.cache package¶
Module contents¶
- class my_utilities.cache.CacheEngine[source]¶
Bases:
ABCModule with abstract class for cache engines
- _abc_impl = <_abc._abc_data object>¶
- _logger = <Logger my_utilities.cache (NOTSET)>¶
- abstractmethod delete(key, **kwargs)[source]¶
Delete data from cache
- Return type:
bool- Parameters:
key (Any)
kwargs (dict[str, Any])
- abstractmethod get(key, **kwargs)[source]¶
Get data from cache
- Return type:
Optional[Any]- Parameters:
key (Any)
kwargs (dict[str, Any])
- abstractmethod lrange(key, start=0, end=-1)[source]¶
- Return type:
List[Any]- Parameters:
key (str)
start (int)
end (int)
- abstractmethod lrem(key, val, count=0)[source]¶
- Return type:
int- Parameters:
key (str)
val (Any)
count (int)
- abstractmethod reset_cache(**kwargs)[source]¶
Reset all keys
- Return type:
bool- Parameters:
kwargs (dict[str, Any])