Fix expire call.

This commit is contained in:
Vincent Driessen 2011-11-13 14:59:34 +01:00
parent 374c95f7a2
commit 606f7f7cb3
1 changed files with 4 additions and 1 deletions

View File

@ -15,4 +15,7 @@ def queue_daemon(app, queue_keys, rv_ttl=500):
except Exception, e:
rv = e
if rv is not None:
conn.setex(key, rv_ttl, dumps(rv))
p = conn.pipeline()
conn.set(key, dumps(rv))
conn.expire(key, rv_ttl)
p.execute()