CassandraCache: convert 0 time to None ttl.

This commit is contained in:
Brian Simpson
2013-11-15 02:22:41 -05:00
parent 7a0b633c73
commit 484ac3b850

View File

@@ -707,7 +707,7 @@ class CassandraCache(CacheUtils):
if val != NoneResult:
ret[key] = self.cf.insert('%s%s' % (prefix, key),
{'value': pickle.dumps(val)},
ttl = time)
ttl = time or None)
self._warm(keys.keys())