Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,10 @@ def __init__(self, name="circuits.session", channel=channel): | |
def load(self, sid): | ||
return self._data[sid] | ||
|
||
def expire(self, sid): | ||
"""Expire session for sid.""" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
eriol
Author
Member
|
||
del self._data[sid] | ||
|
||
def save(self, sid, data): | ||
"""Save User Session Data for sid""" | ||
|
||
|
1 comment
on commit a0bdf7e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
self._data.pop(sid, None) would be better imho.