New in version 2014.7.0.
redis Python module
See salt.modules.redis
for setup instructions.
key_in_redis:
redis.string:
- value: string data
The redis server information specified in the minion config file can be
overridden in states using the following arguments: host
, post
, db
,
password
.
key_in_redis:
redis.string:
- value: string data
- host: localhost
- port: 6379
- db: 0
- password: somuchkittycat
Ensure key absent from redis
Key to ensure absent from redis
list of keys to ensure absent, name will be ignored if this is used
Set this redis instance as a slave.
New in version 2016.3.0.
Master to make this a slave of
Ip of the sentinel to check for the master
Port of the sentinel to check for the master
Ensure that the key exists in redis with the value specified
Redis key to manage
Data to persist in key
Sets time to live for key in seconds
Sets expiration time for key via UNIX timestamp, overrides expire