mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
sgm: use the time parameter.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user