nodeca / promise-memoize

Memoize promise-returning functions. Includes cache expire and prefetch.
MIT License
60 stars 7 forks source link

Option to disable prefetch #5

Closed Redsandro closed 7 years ago

Redsandro commented 7 years ago

I would like the cache to expire and not be prefetched again.

Is there a way to do that?

puzrin commented 7 years ago

Prefetch happens only on active use (you should read data again and again). If you don't read data, prefetch will stop.

If you need something else - try to describe your logic in details, what should happen.

Redsandro commented 7 years ago

Ah ok, I misunderstood. Thank you!