From bdfecf27c54f73b65d452f6e166c721405a1dd04 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Wed, 6 Nov 2013 20:57:46 -0500 Subject: [PATCH] sgm: use the time parameter. --- r2/r2/lib/sgm.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/lib/sgm.pyx b/r2/r2/lib/sgm.pyx index d64cfd369..99df95d78 100644 --- a/r2/r2/lib/sgm.pyx +++ b/r2/r2/lib/sgm.pyx @@ -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