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

setter method #119

Open
yarosdev opened this issue Mar 21, 2021 · 1 comment
Open

setter method #119

yarosdev opened this issue Mar 21, 2021 · 1 comment

Comments

@yarosdev
Copy link

It would be great to be possible preset cached value.

const anyValue = "anyvalue";

memoized.set(...args, anyValue);

const result = memoized(...args); // Hit cache

@medikoo
Copy link
Owner

medikoo commented Mar 22, 2021

@yarosdev great thanks for proposal.

It's scheduled to be possible with v1, which will present an improved interface: #73

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