Quick search

Table Of Contents

Redis Store

Store implementation using Redis. You must have redis-py installed.

Usage example:

from kivy.storage.redisstore import RedisStore

params = dict(host='localhost', port=6379, db=14)
store = RedisStore(params)

All the key-value pairs will be stored with a prefix ‘store’ by default. You can instantiate the storage with another prefix like this:

from kivy.storage.redisstore import RedisStore

params = dict(host='localhost', port=6379, db=14)
store = RedisStore(params, prefix='mystore2')

The params dictionary will be passed to the redis.StrictRedis class.

See redis-py.

class kivy.storage.redisstore.RedisStore(redis_params, **kwargs)[source]

Bases: kivy.storage.AbstractStore

Store implementation using a Redis database. See the kivy.storage module documentation for more informations.