From 281052d0c079a9c56a69be43d62d6e6ec293a5de Mon Sep 17 00:00:00 2001 From: Ihor Gorobets Date: Sun, 15 Mar 2015 22:21:47 +0200 Subject: Make cache available from outer space. --- pylru.py | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.1 From 35eda410d422066cc470901d5bea231f66fcd855 Mon Sep 17 00:00:00 2001 From: Ihor Gorobets Date: Tue, 17 Mar 2015 09:55:56 +0200 Subject: Update README.txt --- README.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.txt b/README.txt index 7f77865..48a655c 100644 --- a/README.txt +++ b/README.txt @@ -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 . + -- cgit v1.2.1