Open yarosdev opened 3 years ago
It would be great to be possible preset cached value.
const anyValue = "anyvalue";
memoized.set(...args, anyValue);
const result = memoized(...args); // Hit cache
@yarosdev great thanks for proposal.
It's scheduled to be possible with v1, which will present an improved interface: https://github.com/medikoo/memoizee/issues/73
It would be great to be possible preset cached value.
const anyValue = "anyvalue";
memoized.set(...args, anyValue);
const result = memoized(...args); // Hit cache