A SessionDataContainer that stores data in the ZODB
There are no attributes in this class.
clear()
copy()
fromkeys(cls, iterable, value=None)
get(key, failobj=None)
has_key(key)
items()
iteritems()
iterkeys()
itervalues()
keys()
pop(key, *args)
popitem()
setdefault(key, failobj=None)
sweep()
Clean out stale data
>>> sdc = PersistentSessionDataContainer() >>> sdc['1'] = SessionData() >>> sdc['2'] = SessionData()
Wind back the clock on one of the ISessionData's so it gets garbage collected
>>> sdc['2'].lastAccessTime -= sdc.timeout * 2
Sweep should leave '1' and remove '2'
>>> sdc.sweep() >>> sd1 = sdc['1'] >>> sd2 = sdc['2'] Traceback (most recent call last): [...] KeyError: '2'
update(dict=None, **kwargs)
values()