You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore(examples): fix examples for v5 (#2938)
This commit is contained in:
committed by
GitHub
parent
bd5c230c62
commit
2c9ad2e772
@@ -12,9 +12,11 @@ const client = createClient({
|
||||
'redis.pcall("INCRBY", KEYS[1], ARGV[1]),' +
|
||||
'redis.pcall("INCRBY", KEYS[2], ARGV[1])' +
|
||||
'}',
|
||||
transformArguments(key1, key2, increment) {
|
||||
return [key1, key2, increment.toString()];
|
||||
},
|
||||
parseCommand(parser, key1, key2, increment) {
|
||||
parser.pushKey(key1);
|
||||
parser.pushKey(key2);
|
||||
parser.push(increment.toString());
|
||||
},
|
||||
}),
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user