diff options
-rw-r--r-- | README.txt | 2 | ||||
-rw-r--r-- | pylru.py | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -209,5 +209,7 @@ PyLRU also provides a function decorator:: return x*x # Now results of the square function are cached for future lookup. + # You can get full access to cache via square.cache . + @@ -529,4 +529,5 @@ class lrudecorator(object): value = func(*args, **kwargs) self.cache[key] = value return value + wrapped.cache = self.cache return wrapped |