-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Using info
or config
in a multi/exec
#411
Comments
I had the code wrapped in script: 'use strict';
const Redis = require('ioredis');
const redis = new Redis();
redis.on('connect', () => {
console.log('redis connected');
redis.info().then(info => {
console.log('redis.info response', info);
});
redis.config('get', 'maxmemory').then(maxMem => {
console.log('redis.config response', maxMem);
});
redis.multi().info().config('get', 'maxmemory').exec().then(results => {
console.log('redis.multi response', results);
});
});
The multi does work outside the |
Thank for the report! I just confirmed this is a bug due to a race condition. It happens when sending pipeline/transaction that includes I'm going to fix this today. BTW, It's recommended to handle the |
Fixed in v2.4.3. 🍻 |
closing this as it's fixed |
I have just migrated from
node_redis
. I had a check script that did the following:Running the commands individually works (not using
multi
). Is this by design? I only used the multi in the first place to reduce a bit of nesting as I need to munge the results.The text was updated successfully, but these errors were encountered: