Permalink
Browse files

[Redis] Perform Type Casts On Floats

  • Loading branch information...
etscrivner committed Dec 4, 2014
1 parent fe27e91 commit fb505d9eaf88a0445f69a640151a4b653d3a1ef1
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 fb505d9

Please sign in to comment.