.. _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
* **RedisDatabase.get_value**(self, key)
.. raw:: html
* __key:__ Key.
.. raw:: html
* (sucess, the value).
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.redis_database.RedisDatabase.set_value:
RedisDatabase.set_value
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **RedisDatabase.set_value**(self, key, value)
.. raw:: html
* __key:__ Key.
* __value:__ Value.
.. raw:: html
* (sucess, the key).
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.redis_database.RedisDatabase.delete_key:
RedisDatabase.delete_key
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **RedisDatabase.delete_key**(self, key)
.. raw:: html
* __key:__ Key.
.. raw:: html
* (True, the key).
.. raw:: html
* (this function does not raise any notable errors)
.. _moobius.database.redis_database.RedisDatabase.all_keys:
RedisDatabase.all_keys
---------------------------------------------------------------------------------------------------------------------
.. raw:: html
* **RedisDatabase.all_keys**(self)
.. raw:: html
* __(this class constructor accepts no arguments):__
.. raw:: html
* The list of keys.
.. raw:: html
* (this function does not raise any notable errors)
Class attributes
--------------------
RedisDatabase.DatabaseInterface
**********************
Internals
**********************
.. toctree::
:maxdepth: 2
moobius.database.redis_database_internal_attrs