From 645ea56f4c55d2a72f8ba70e3cf8a152154e2950 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Sun, 14 Oct 2018 12:26:06 +0000 Subject: [PATCH] publish muk_utils - 12.0 --- muk_utils/tools/cache.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/muk_utils/tools/cache.py b/muk_utils/tools/cache.py index 5ee27f2..4f32129 100644 --- a/muk_utils/tools/cache.py +++ b/muk_utils/tools/cache.py @@ -49,14 +49,10 @@ class memoize(object): kw = sorted(kwargs.items()) key = (args, tuple(kw)) try: - print("TRY CACHE") value = self.cache[key] - print("VALUE") if (current_time - value[1]) > self.timeout: - print("TIMEOUT") raise KeyError except KeyError: - print("NEW") value = self.cache[key] = (func(*args,**kwargs), current_time) return value[0] return wrapper \ No newline at end of file