diff options
author | zsloan | 2016-06-20 16:01:12 +0000 |
---|---|---|
committer | zsloan | 2016-06-20 16:01:12 +0000 |
commit | 30a37c6f1f9a9f759a92fd61876af9e9e3d078b9 (patch) | |
tree | e4f5b49aa21c32aa2b770b1a65c8fef7782b625f /wqflask/utility/temp_data.py | |
parent | 4fec0e6fc0772785a30451d417082bc189f2f6dd (diff) | |
parent | 10df36b60273d81678f6630c07a2d8e5a6409282 (diff) | |
download | genenetwork2-30a37c6f1f9a9f759a92fd61876af9e9e3d078b9.tar.gz |
Merge branch 'staging' of github.com:genenetwork/genenetwork2 into development
Diffstat (limited to 'wqflask/utility/temp_data.py')
-rwxr-xr-x | wqflask/utility/temp_data.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/utility/temp_data.py b/wqflask/utility/temp_data.py index 004d45c6..5bf700c9 100755 --- a/wqflask/utility/temp_data.py +++ b/wqflask/utility/temp_data.py @@ -4,16 +4,16 @@ from redis import Redis import simplejson as json class TempData(object): - + def __init__(self, temp_uuid): self.temp_uuid = temp_uuid self.redis = Redis() self.key = "tempdata:{}".format(self.temp_uuid) - + def store(self, field, value): self.redis.hset(self.key, field, value) self.redis.expire(self.key, 60*15) # Expire in 15 minutes - + def get_all(self): return self.redis.hgetall(self.key) |