moobius.database.redis_database#
Module-level functions#
(No module-level functions)
Class RedisDatabase#
The redis database make use of a redis.Redis(…) server (Redis servers are set to localhost:6379 by default). By default uses the domains’s hash code to differentiate different domains, unless a user-supplied “db” value is given.
RedisDatabase.get_value#
**RedisDatabase.get_value**(self, key)
__key:__ Key.
(sucess, the value).
(this function does not raise any notable errors)
RedisDatabase.set_value#
**RedisDatabase.set_value**(self, key, value)
__key:__ Key.
__value:__ Value.
(sucess, the key).
(this function does not raise any notable errors)
RedisDatabase.delete_key#
**RedisDatabase.delete_key**(self, key)
__key:__ Key.
(True, the key).
(this function does not raise any notable errors)
RedisDatabase.all_keys#
**RedisDatabase.all_keys**(self)
__(this class constructor accepts no arguments):__
The list of keys.
(this function does not raise any notable errors)
Class attributes#
RedisDatabase.DatabaseInterface