jaredwray / flat-cache

A stupidly simple key/value storage using files to persist the data
MIT License
165 stars 30 forks source link

Don't rely on `this` #20

Closed Siilwyn closed 4 years ago

Siilwyn commented 6 years ago

Love this module.

Using it in chains is less simple because it relies on this, I have to bind:

doSomethingAsync()
  .then(myCache.save.bind(myCache)

Instead of:

doSomethingAsync()
  .then(myCache.save)
royriojas commented 6 years ago

very good point, I myself had been eaten by that one, will check and see how complex would it be to change it

Siilwyn commented 6 years ago

If this is resolved you could boast this module as functional in the readme, it'll probably win some people over. :)

Siilwyn commented 4 years ago

This issue has been automatically closed because it has not had recent activity.