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

Option to pass in cache key generator fn or value #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

fabalint
Copy link

!! I had to copy-paste the code changes manually, network restrictions applied.. please change it in case it seems necessary !!

This addition makes it possible to configure external cache key generator function, globally or per-call.
See readme.md for examples.

+ overridable generateKey function
+ per-cache-call generateKey function or value as cache key
    [params=] { _cacheKey:function(type, payload){return 'current-key'} ) , other_call_params... }
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

Successfully merging this pull request may close these issues.

1 participant