medikoo / memoizee

Complete memoize/cache solution for JavaScript
ISC License
1.73k stars 61 forks source link

Expose `has` on memoized methods #45

Open medikoo opened 9 years ago

rektide commented 7 years ago

I'd like to see a more general solution that also lets us iterate through all inputs that have been memoized.

rektide commented 7 years ago

Rather, all inputs that still have cached result for that input.

medikoo commented 7 years ago

@rektide By default, intention is thatmemoizee will only store hash-like information (so not the input arguments in exact form, but unique id that corresponds to them). Having that, what you propose will not be possible directly, but I agree it's a good idea, to have it as an option.