minimalkv.memory.redisstore module

class minimalkv.memory.redisstore.RedisStore(redis: StrictRedis)

Bases: TimeToLiveMixin, KeyValueStore

Uses a redis-database as the backend.

Parameters

redisredis.StrictRedis

Backend.

iter_keys(prefix='') Iterator[str]

Iterate over all keys in the store starting with prefix.

Parameters

prefixstr, optional, default = ‘’

Only iterate over keys starting with prefix. Iterate over all keys if empty.

keys(prefix: str = '') List[str]

List all keys in the store starting with prefix.

Parameters

prefixstr, optional, default = ‘’

Only list keys starting with prefix. List all keys if empty.

Raises

IOError

If there was an error accessing the store.