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