Skip to content

Commit 7a72ba9

Browse files
committed
memoize_on_disk: segregate caches by wrapped function (closes gh-709)
1 parent bc83c53 commit 7a72ba9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

loopy/tools.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,8 @@ def _get_persistent_hashable_arg(arg):
914914
else:
915915
return arg
916916

917-
cache_key = (tuple(_get_persistent_hashable_arg(arg)
917+
cache_key = (func.__qualname__, func.__name__,
918+
tuple(_get_persistent_hashable_arg(arg)
918919
for arg in args),
919920
{kw: _get_persistent_hashable_arg(arg)
920921
for kw, arg in kwargs.items()})

0 commit comments

Comments
 (0)