1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Added 'NOACK' to xreadgroup call

Added 'NOACK' to xreadgroup call, to make sure entries are auto ACK
This commit is contained in:
Guy Korland
2018-11-14 04:51:56 +02:00
committed by GitHub
parent 49a635d084
commit 383f097029

View File

@@ -15,7 +15,7 @@ client1.xadd('mystream', '*', 'field1', 'm1', function (err) {
}
});
client2.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000,
client2.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000, 'NOACK',
'STREAMS', 'mystream', '>', function (err, stream) {
if(err){
return console.error(err);
@@ -23,7 +23,7 @@ client1.xadd('mystream', '*', 'field1', 'm1', function (err) {
console.log('client2 ' + stream);
});
client3.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000,
client3.xreadgroup('GROUP', 'mygroup', 'consumer', 'Block', 1000, 'NOACK',
'STREAMS', 'mystream', '>', function (err, stream) {
if(err){
return console.error(err);