.. _moobius_database_redis_database: ################################################################################### 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. .. _moobius.database.redis_database.RedisDatabase.get_value: RedisDatabase.get_value --------------------------------------------------------------------------------------------------------------------- .. raw:: html

Signature:

* **RedisDatabase.get_value**(self, key) .. raw:: html

Parameters:

* __key:__ Key. .. raw:: html

Returns:

* (sucess, the value). .. raw:: html

Raises:

* (this function does not raise any notable errors) .. _moobius.database.redis_database.RedisDatabase.set_value: RedisDatabase.set_value --------------------------------------------------------------------------------------------------------------------- .. raw:: html

Signature:

* **RedisDatabase.set_value**(self, key, value) .. raw:: html

Parameters:

* __key:__ Key. * __value:__ Value. .. raw:: html

Returns:

* (sucess, the key). .. raw:: html

Raises:

* (this function does not raise any notable errors) .. _moobius.database.redis_database.RedisDatabase.delete_key: RedisDatabase.delete_key --------------------------------------------------------------------------------------------------------------------- .. raw:: html

Signature:

* **RedisDatabase.delete_key**(self, key) .. raw:: html

Parameters:

* __key:__ Key. .. raw:: html

Returns:

* (True, the key). .. raw:: html

Raises:

* (this function does not raise any notable errors) .. _moobius.database.redis_database.RedisDatabase.all_keys: RedisDatabase.all_keys --------------------------------------------------------------------------------------------------------------------- .. raw:: html

Signature:

* **RedisDatabase.all_keys**(self) .. raw:: html

Parameters:

* __(this class constructor accepts no arguments):__ .. raw:: html

Returns:

* The list of keys. .. raw:: html

Raises:

* (this function does not raise any notable errors) Class attributes -------------------- RedisDatabase.DatabaseInterface ********************** Internals ********************** .. toctree:: :maxdepth: 2 moobius.database.redis_database_internal_attrs