errbot.storage.memory module¶
-
class
errbot.storage.memory.MemoryStorage(namespace)[source]¶ Bases:
errbot.storage.base.StorageBase-
close() → None[source]¶ Sync and close the storage. The caller of close will protect against close on non open and double close.
-
get(key: str) → Any[source]¶ Get the value stored for key. Raises KeyError if the key doesn’t exist. The caller of get will protect against get on non open.
Parameters: key ( str) – the keyReturns: the value
-
-
class
errbot.storage.memory.MemoryStoragePlugin(bot_config)[source]¶ Bases:
errbot.storage.base.StoragePluginBase-
open(namespace: str) → errbot.storage.base.StorageBase[source]¶ Open the storage with the given namespace (core, or plugin name) and config. The caller of open will protect against double opens.
Return type: StorageBaseParameters: namespace ( str) – a namespace to isolate the plugin storages.Returns:
-
Previous: errbot.storage.base module
|
Next: errbot.storage.shelf module