diff options
author | Pjotr Prins | 2016-06-17 06:48:01 +0000 |
---|---|---|
committer | Pjotr Prins | 2016-06-17 06:48:01 +0000 |
commit | 93e3878c8b97ecbf28630e4bb3733a29f4cf45aa (patch) | |
tree | ef92de7c75b7899b406e99c97006a7e2b20bd86b /wqflask/utility/temp_data.py | |
parent | eb84f7c0e384e08b810e052fd3935f6d977b7ea2 (diff) | |
parent | 10df36b60273d81678f6630c07a2d8e5a6409282 (diff) | |
download | genenetwork2-93e3878c8b97ecbf28630e4bb3733a29f4cf45aa.tar.gz |
Conflict
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) |