summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIhor Gorobets <iho@users.noreply.github.com>2015-03-15 22:21:47 +0200
committerIhor Gorobets <iho@users.noreply.github.com>2015-03-15 22:21:47 +0200
commit281052d0c079a9c56a69be43d62d6e6ec293a5de (patch)
tree569e2d8948eb30ebd6539fa4e18800f3a2f953d6
parent221dd259f5c34562c835611d1cf62384b9019da4 (diff)
downloadpylru-281052d0c079a9c56a69be43d62d6e6ec293a5de.tar.gz
Make cache available from outer space.
-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