dabroek / node-cache-manager-ioredis

Redis store for node-cache-manager using IORedis.
MIT License
59 stars 29 forks source link

Missing mset method #9

Open cevio opened 4 years ago

cevio commented 4 years ago

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 commented 2 years ago

Did a rewrite of this package with the mset method available here: https://www.npmjs.com/package/@tirke/node-cache-manager-ioredis