Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

Commit

Permalink
Sessions: missing @staticmethod for Redis has been added.
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kubacki committed Nov 19, 2011
1 parent 2daa45b commit 03ac868
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions anzu/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ def __init__(self, connection, **kwargs):
if not kwargs.has_key('session_id'):
self.save()

@staticmethod
def _parse_connection_details(details):
# redis://[auth@][host[:port]][/db]
match = re.match('redis://(?:(\S+)@)?([^\s:/]+)?(?::(\d+))?(?:/(\d+))?$', details)
Expand Down Expand Up @@ -588,6 +589,7 @@ def delete(self):
"""Delete the session from storage."""
self.connection.delete(self.session_id)

@staticmethod
def delete_expired(connection):
"""With Memcached as session storage, this function does
not make sense as all keys are saved with expiry time
Expand Down

0 comments on commit 03ac868

Please sign in to comment.