summaryrefslogtreecommitdiff
path: root/pylru.py
diff options
context:
space:
mode:
authorjlhutch <jlhutch@gmail.com>2015-03-17 12:13:35 -0500
committerjlhutch <jlhutch@gmail.com>2015-03-17 12:13:35 -0500
commit5e24a4b4d141ff7b6426d771ada3801665132e5c (patch)
tree1432257d45f402258283397a5e7d521d27cc6d46 /pylru.py
parent221dd259f5c34562c835611d1cf62384b9019da4 (diff)
parent35eda410d422066cc470901d5bea231f66fcd855 (diff)
downloadpylru-5e24a4b4d141ff7b6426d771ada3801665132e5c.tar.gz
Merge pull request #12 from iho/patch-1
Make cache available from outer space.
Diffstat (limited to 'pylru.py')
-rw-r--r--pylru.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pylru.py b/pylru.py
index 28d55d5..a6fce0f 100644
--- a/pylru.py
+++ b/pylru.py
@@ -529,4 +529,5 @@ class lrudecorator(object):
value = func(*args, **kwargs)
self.cache[key] = value
return value
+ wrapped.cache = self.cache
return wrapped