Commit 9f4a4f12 authored by Yannick Roehlly's avatar Yannick Roehlly
Browse files

Remove is_cached from the warehouse

It's better (for now) to use only get_from_cache and get None when the
object is not cached.
parent 6f50f2ed
......@@ -30,20 +30,6 @@ class SedWarehouse(object):
if cache_type == "memory":
dict_cache = {}
def is_cached(key):
"""Return true is the key is in the cache.
key : any immutable
return (key in dict_cache)
def get_from_cache(key):
"""Return the value corresponding to the key in the cache.
......@@ -73,7 +59,6 @@ class SedWarehouse(object):
# We store a copy not to modify the stored object.
dict_cache[key] = deepcopy(value)
self.is_cached = is_cached
self.get_from_cache = get_from_cache
self.add_to_cache = add_to_cache
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment