Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invocations from different py files with same function name cause cache colision #3

Open
tenox7 opened this issue Jul 27, 2019 · 1 comment

Comments

@tenox7
Copy link

tenox7 commented Jul 27, 2019

foo.py:
@cache_to_disk(1)
def myfun():

will store the cache in exact same file as

bar.py:
@cache_to_disk(1)
def myfun():

causing a cache colision

@gerardsimons
Copy link

gerardsimons commented Oct 15, 2021

Yeah it seems it just takes as ID the name of the functions and the string representations of the arguments. It should also take the name of the module / script. The package is kind of a mess anyway as the string representation are awful when you have an object, as the pointer just changes every time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants