Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kavigupta committed May 23, 2024
1 parent 2986110 commit 6abfba1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions permacache/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6abfba1

Please sign in to comment.