Redis
Introduction
The Redis Extension provides application caching and key/value store support via Redis.
Documentation References:
API References:
Requirements
Redis
Cement 3.0.8+:
pip install redis
Applications using Cement <3.0.8 should continue to include redis
in their dependencies.
Configuration
This extension honors the following config settings under a [cache.redis]
section in any configuration file:
Setting
Description
expire_time
The default time in seconds to expire items in the cache. Default: 0
(does not expire)
host
Redis server ip address or hostname
port
Redis server port
db
Redis server database id/namespace
Usage
myapp.py
~/.myapp.conf
Last updated