- Keys must be at least 1 character long
- Keys cannot contain
:(colon) or#(hash) characters - Data stored must be JSON-serializable
PersistentStore
get
get
ParametersReturnsThe value associated with the key, or
The key to retrieve the value for. Must be at least 1 character long and cannot contain
: or # characters.None if not found.RaisesValueError: If the key is invalid (empty or contains forbidden characters)
set
set
ParametersReturnsNoneRaises
The key to set the value for. Must be at least 1 character long and cannot contain
: or # characters.The value to store. Can be any JSON-serializable type (dict, list, str, int, float, bool, None).
ValueError: If the key is invalid (empty or contains forbidden characters)