Datastore¶
-
class
policyengine.models.
DataStore
(*args, **kwargs)¶ DataStore used for persisting serializable data on a Proposal.
-
get
(key)¶ Returns the value associated with the given key.
- Parameters
key – The key associated with the value.
-
set
(key, value)¶ Stores the given value, referenced by the given key.
- Parameters
key – The key to associate with the given value.
value – The value to store.
-
remove
(key)¶ Removes the value associated with the given key. Returns True if a value was found and removed. Returns False otherwise.
- Parameters
key – The key associated with the value to be removed.
-