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

Clear results when a function changes? #6

Open
mtorpey opened this issue Jan 29, 2019 · 0 comments
Open

Clear results when a function changes? #6

mtorpey opened this issue Jan 29, 2019 · 0 comments
Labels
question Further information is requested

Comments

@mtorpey
Copy link
Owner

mtorpey commented Jan 29, 2019

As @orlitzky points out, a function could be changed (for example, to fix a bug or change other behaviour) and yet the cache will persist, and by default it will be used simply based on the name of the function, loading cached results that are no longer valid.

At the moment we can get around this by specifying a custom funcname that uniquely identifies this version of the function, but perhaps something more resilient would be in order. Should we store a hash of the function's source code, or the name and version of the package in which it resides?

This overlaps with questions about namespaces. I'd welcome anyone's opinion, and will be asking people for their thoughts in the coming weeks.

@mtorpey mtorpey added the question Further information is requested label Jan 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant