Handle prefill

This commit is contained in:
Erik Johnston 2019-11-22 18:39:26 +00:00
parent 9cca5ee743
commit b1e498d6e1

View file

@ -244,6 +244,9 @@ class Cache(object):
def prefill(self, key, value, callback=None): def prefill(self, key, value, callback=None):
callbacks = [callback] if callback else [] callbacks = [callback] if callback else []
self.ratio_tracking.add(str(hash(key)))
self.cache.set(key, value, callbacks=callbacks) self.cache.set(key, value, callbacks=callbacks)
def invalidate(self, key): def invalidate(self, key):