aboutsummaryrefslogtreecommitdiff
path: root/src/Cache.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-29 13:37:19 +0100
committerGravatar jesopo2018-09-29 13:37:19 +0100
commitfe981f99116c96f2d84bb5a05255464e8c563867 (patch)
tree6d69baa70848f88bf7b8cf10610fb3425672aba3 /src/Cache.py
parentAdd src/Cache.py, use it in modules/coins.py (diff)
signature
Actually get "item" when a cached item expires
Diffstat (limited to 'src/Cache.py')
-rw-r--r--src/Cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Cache.py b/src/Cache.py
index 4d7c8def..4c06fd7c 100644
--- a/src/Cache.py
+++ b/src/Cache.py
@@ -31,6 +31,7 @@ class Cache(object):
if expiration and expiration <= now:
expired.append(id)
for id in expired:
+ item = self._items[id]
del self._items[id]
del self._item_to_id[item]