Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.del(key, options, cb) method not returning a Promise #25

Open
markoivanovski opened this issue Oct 8, 2021 · 3 comments · May be fixed by #29
Open

.del(key, options, cb) method not returning a Promise #25

markoivanovski opened this issue Oct 8, 2021 · 3 comments · May be fixed by #29

Comments

@markoivanovski
Copy link

markoivanovski commented Oct 8, 2021

self.del = (key, options, cb) => {

The delete method does not appear to be wrapped in a Promise, giving it a different signature to the other methods. Believe it is supposed to?

self.del = (key, options, cb) => {
  if (typeof options === 'function') {
    cb = options;
  }

  redisCache.del(key, handleResponse(cb));
};
@markoivanovski
Copy link
Author

@dabroek I have linked a PR that fixes the issue, do you think it could be merged and release?

Thanks!

@ehaynes99
Copy link

Was the PR just closed due to inactivity? This has been inconsistent with the cache-manager#Cache interface all along, and the fix simply follows the pattern of the others...

@regevbr regevbr linked a pull request Apr 10, 2022 that will close this issue
@Tirke
Copy link

Tirke commented Aug 9, 2022

@markoivanovski Did a rewrite of this package with del returning a promise here: https://www.npmjs.com/package/@tirke/node-cache-manager-ioredis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants