File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -250,6 +250,10 @@ await Promise.all([
250
250
]);
251
251
```
252
252
253
+ ### Programmability
254
+
255
+ See the [ Programmability overview] ( ./docs/programmability.md ) .
256
+
253
257
### Clustering
254
258
255
259
Check out the [ Clustering Guide] ( ./docs/clustering.md ) when using Node Redis to connect to a Redis Cluster.
Original file line number Diff line number Diff line change @@ -33,8 +33,9 @@ const client = createClient({
33
33
add: {
34
34
NUMBER_OF_KEYS: 1 ,
35
35
FIRST_KEY_INDEX: 1 ,
36
- transformArguments(key : string , toAdd : number ): Array <string > {
37
- return [key , toAdd .toString ()];
36
+ parseCommand(parser : CommandParser , key : RedisArgument , toAdd : RedisArgument ) {
37
+ parser .pushKey (key );
38
+ parser .push (toAdd );
38
39
},
39
40
transformReply: undefined as unknown as () => NumberReply
40
41
}
@@ -61,8 +62,9 @@ const client = createClient({
61
62
SCRIPT: ' return redis.call("GET", KEYS[1]) + ARGV[1];' ,
62
63
NUMBER_OF_KEYS: 1 ,
63
64
FIRST_KEY_INDEX: 1 ,
64
- transformArguments(key : string , toAdd : number ): Array <string > {
65
- return [key , toAdd .toString ()];
65
+ parseCommand(parser : CommandParser , key : RedisArgument , toAdd : RedisArgument ) {
66
+ parser .pushKey (key );
67
+ parser .push (toAdd );
66
68
},
67
69
transformReply: undefined as unknown as () => NumberReply
68
70
})
You can’t perform that action at this time.
0 commit comments