medikoo / memoizee

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

Delete question #57

Closed hodeyp closed 8 years ago

hodeyp commented 8 years ago

Is it possible to delete cached entries based upon just the first argument? In my case, I have a memoized function that caches a transform based upon different groupings. When the underlying data is changed I want to delete all of the groupings in the cache for that object but leave all other groupings for other objects intact. Is this possible?

medikoo commented 8 years ago

Sorry for late response (lack of proper notification from github made me seen it today).

Similar question was already asked at https://github.com/medikoo/memoizee/issues/55 See the second proposed solution (it's not possible in direct form)