sgm: use the time parameter.

This commit is contained in:
Brian Simpson
2013-11-06 20:57:46 -05:00
parent 683c88baf8
commit bdfecf27c5

View File

@@ -69,6 +69,6 @@ def sgm(cache, keys, miss_fn, str prefix='', int time=0, stale=False, found_fn=N
calculated_to_cache = {}
for k, v in calculated.iteritems():
calculated_to_cache[str(k)] = v
cache.set_multi(calculated_to_cache, prefix=prefix)
cache.set_multi(calculated_to_cache, prefix=prefix, time=time)
return ret