node-cache-manager-ioredis icon indicating copy to clipboard operation
node-cache-manager-ioredis copied to clipboard

Missing mset method

Open cevio opened this issue 4 years ago • 1 comments

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;

cevio avatar May 17 '20 10:05 cevio

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

Tirke avatar Aug 09 '22 07:08 Tirke