The store object is obtained from the store() method of the manager object. It is used to manipulate the session store of the application specified in the store() method.
store objects have the following attribute:
app
can be set to another application's name in order to manipulate a different session store. Application names are strings made up of the characters a-z
, A-Z
, 0-9
and -_.
and are between 1 and 255 characters in length.
store objects have the following methods:
key, value) |
key) |
key) |
) |
key) |
True
if key exists on the session store otherwise False
.
) |
) |
(key, value)
pairs for each key in the store. The order of the values is not defined. Values and keys obtained from this method cannot be set directly. Instead the set() method should be used.
) |
store objects also implement the following methods: __getitem__(key), __setitem__(key, value) and __delitem__(key) which map directly to the get(key), set(key) and delete(key) methods respectively and allow the store object to be treated similarly to a dictionary as demonstrated earlier in the documentation.