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, order_by='created')[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 should 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, order_by='created')[source]¶ Changed in version 1.14.0: Added the order_by parameter.
Parameters:
-
serializer
[source]¶ alias of
king_phisher.serializers.MsgPack
-