redis

Redis SDB module

Added in version 2019.2.0.

This module allows access to Redis using an sdb:// URI.

Like all SDB modules, the Redis module requires a configuration profile to be configured in either the minion or master configuration file. This profile requires very little. For example:

sdb_redis:
  driver: redis
  host: 127.0.0.1
  port: 6379
  password: pass
  db: 1

The driver refers to the Redis module, all other options are optional. For option details see: https://redis-py.readthedocs.io/en/latest/.

saltext.redis.sdb.redis_sdb.__virtual__()[source]

Module virtual name.

saltext.redis.sdb.redis_sdb.set_(key, value, profile=None)[source]

Set a value into the Redis SDB.

saltext.redis.sdb.redis_sdb.get(key, profile=None)[source]

Get a value from the Redis SDB.

saltext.redis.sdb.redis_sdb.delete(key, profile=None)[source]

Delete a key from the Redis SDB.