Permalink
Browse files

Merge pull request #11 from etscrivner/fix-type-error

[Redis] Perform Type Casts On Floats
  • Loading branch information...
winkey committed Dec 8, 2014
2 parents c34251a + fb505d9 commit 33cb38ddd4ac0647330a338f9e6262e00ce07bac
Showing with 2 additions and 2 deletions.
  1. +2 −2 tilecache/TileCache/Caches/Redis.py
@@ -55,7 +55,7 @@ def set(self, tile, data):
key = self.getKey(tile)
pipeline = self.cache.pipeline()
pipeline.hmset(key, {'data': data, 'last_updated': time.time()})
pipeline.expire(key, self.expiration)
pipeline.expire(key, int(self.expiration))
pipeline.execute()
return data
@@ -102,7 +102,7 @@ def attemptLock(self, tile):
if result:
self.cache.expire(
self.getLockName(tile),
self.timeout + 1
int(self.timeout + 1)
)
return result

0 comments on commit 33cb38d

Please sign in to comment.