1.2.1.3. storage
¶
This module provides functionality to utilize the database for persistent storage.
1.2.1.3.1. Classes¶
-
class
KeyValueStorage
(namespace=None)[source]¶ This class provides key-value storage of arbitrary data in the database. The
serializers
module is used for converting data into a format suitable for storing in the database. This object, once initialized, provides an interface just like a standard dictionary object. An optional namespace can be specified as a unique identifier, allowing different sources to store data using the same keys. All keys must be strings but data can be anything that is serializable.-
__init__
(namespace=None)[source]¶ Parameters: namespace (str) – The unique identifier of this namespace.
-
serializer
[source]¶ alias of
king_phisher.serializers.MsgPack
-