medikoo / memoizee

Complete memoize/cache solution for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setter method

yarosdev opened this issue · comments

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: #73