Allow NoSQL backends to accept an expire argument #15

Merged
merged 1 commit into from Nov 20, 2013

Conversation

Projects
None yet
3 participants
@XiaonuoGantan

Allow NoSqlManager to accept a new keyword argument expire, which is
accepted as an optional argument by the method set_value in redis.py to
specify the expire time in seconds for the session object.

Add a new keyword argument expiretime to nosql.py
Allow NoSqlManager to accept a new keyword argument expire, which is
accepted as an optional argument by the method set_value in redis.py to
specify the expire time in seconds for the session object
@dairiki

This comment has been minimized.

Show comment Hide comment
@dairiki

dairiki Nov 20, 2013

Contributor

I'm using server side beaker sessions, with (thanks to beaker_extensions) data in redis. I would like to set a redis-side expiration on the session data so that I don't have to explicitly garbage collect stale sessions.

This seems like the solution (or, at least, a solution). Or is there a better way?

Contributor

dairiki commented Nov 20, 2013

I'm using server side beaker sessions, with (thanks to beaker_extensions) data in redis. I would like to set a redis-side expiration on the session data so that I don't have to explicitly garbage collect stale sessions.

This seems like the solution (or, at least, a solution). Or is there a better way?

didip added a commit that referenced this pull request Nov 20, 2013

Merge pull request #15 from XiaonuoGantan/master
Allow NoSQL backends to accept an expire argument

@didip didip merged commit b45b10d into didip:master Nov 20, 2013

@dairiki

This comment has been minimized.

Show comment Hide comment
@dairiki

dairiki Nov 20, 2013

Contributor

Thank you!

Contributor

dairiki commented Nov 20, 2013

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment