From 6abfba1eedcd422b54f04a8ea281d7b5b3e72705 Mon Sep 17 00:00:00 2001 From: Kavi Gupta Date: Thu, 23 May 2024 18:00:22 -0400 Subject: [PATCH] update --- permacache/cache.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/permacache/cache.py b/permacache/cache.py index 23789b4..d334223 100644 --- a/permacache/cache.py +++ b/permacache/cache.py @@ -120,11 +120,8 @@ def __call__(self, *args, **kwargs): return value def cache_contains(self, *args, **kwargs): - key = self.key_function(args, kwargs, parallel=self.parallel) - assert not isinstance(key, parallel_output), "not supported" - key = stringify(key) - with self.shelf as db: - return key in db + del args, kwargs + raise NotImplementedError("not implemented for outfile cache") def permacache(path, key_function=None, *, parallel=(), out=None, **kwargs):