Allow NoSQL backends to accept an expire argument #15

Merged
merged 1 commit into from Nov 20, 2013

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.

@XiaonuoGantan XiaonuoGantan 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
d14f43e
@dairiki

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 didip merged commit b45b10d into didip:master Nov 20, 2013
@dairiki

Thank you!

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