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

Missing mset method #9

Open
cevio opened this issue May 17, 2020 · 1 comment
Open

Missing mset method #9

cevio opened this issue May 17, 2020 · 1 comment

Comments

@cevio
Copy link

cevio commented May 17, 2020

cacheManage -> multi_caching.js
line 284:

           if (multi) {
                if (typeof cache.store.mset !== 'function') {
                    /**
                     * Silently fail for store that don't support mset()
                     */
                    return next();
                }
                keysValues.push(cacheOptions);
                keysValues.push(next);

                cache.store.mset.apply(cache.store, keysValues);
            } else {
                cache.store.set(keysValues[0], keysValues[1], cacheOptions, next);
            }

you miss mset

you should add:

self.mset = self.set;
@Tirke
Copy link

Tirke commented Aug 9, 2022

Did a rewrite of this package with the mset method available 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
Development

No branches or pull requests

2 participants