diff options
Diffstat (limited to 'pomu/util/cache.py')
-rw-r--r-- | pomu/util/cache.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pomu/util/cache.py b/pomu/util/cache.py index b1d09b2..93502c5 100644 --- a/pomu/util/cache.py +++ b/pomu/util/cache.py @@ -2,6 +2,9 @@ Caches the return value of a function -> Result, regardless of input params """ class cached(): + """ + A decorator to make the function cache its return value, regardless of input + """ def __init__(self, fun): self.fun = fun def __call__(self, *args): |