summaryrefslogtreecommitdiff
path: root/pylru.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylru.py')
-rw-r--r--pylru.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pylru.py b/pylru.py
index ac8b133..c631e27 100644
--- a/pylru.py
+++ b/pylru.py
@@ -554,8 +554,8 @@ def lruwrap(store, size, writeback=False):
import functools
class lrudecorator(object):
- def __init__(self, size):
- self.cache = lrucache(size)
+ def __init__(self, size, callback=None):
+ self.cache = lrucache(size, callback)
def __call__(self, func):
def wrapper(*args, **kwargs):