You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/commands.md
+7-4Lines changed: 7 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -583,8 +583,8 @@ A `TIMEOUT t` argument can be specified to cause a request to be removed from th
583
583
584
584
```
585
585
AI.SCRIPTEXECUTE <key> <function>
586
-
KEYS n <key> [keys...]
587
-
[INPUTS m <input> [input ...]
586
+
[KEYS n <key> [keys...]]
587
+
[INPUTS m <input> [input ...]]
588
588
[ARGS k <arg> [arg...]]
589
589
[OUTPUTS k <output> [output ...] [TIMEOUT t]]+
590
590
```
@@ -593,13 +593,16 @@ _Arguments_
593
593
594
594
***key**: the script's key name
595
595
***function**: the name of the function to run
596
-
***KEYS**: Either a squence of key names that the script will access before, during and after its execution, or a tag which all those keys share. `KEYS` is a mandatory scope in this command. Redis will verify that all potional key accesses are done to the right shard.
596
+
***KEYS**: Either a squence of key names that the script will access before, during and after its execution, or a tag which all those keys share.
597
597
***INPUTS**: Denotes the beginning of the input parameters list, followed by its length and one or more input tensors.
598
598
***ARGS**: A list additional arguments that a user can send to the script. All args are sent as strings, but can be casted to other types supported by torch script, such as `int`, or `float`.
599
599
600
600
***OUTPUTS**: denotes the beginning of the output tensors keys' list, followed by its length and one or more key names.
601
601
***TIMEOUT**: the time (in ms) after which the client is unblocked and a `TIMEDOUT` string is returned
602
602
603
+
Note:
604
+
Either `KEYS` or `INPUTS` scopes should be provided this command (one or both scopes are acceptable). Those scopes indicate keyspace access and such, the right shard to execute the command at. Redis will verify that all potional key accesses are done to the right shard.
605
+
603
606
_Return_
604
607
605
608
A simple 'OK' string, a simple `TIMEDOUT` string, or an error.
@@ -832,7 +835,7 @@ A `TIMEOUT t` argument can be specified to cause a request to be removed from th
0 commit comments