RESTORE-ASKING
RESTORE-ASKING key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]
- Group
- Keys
- Complexity
- O(N) where N is the size of the value
- Arity
- -4 (at least 4 words, counting the command name)
- Flags
- write
- Keys
- first 1, last 1, step 1
- HotKV Cloud
- All plans
- On-Premise
- no license needed
RESTORE-ASKING takes the same arguments and gives the same replies as
RESTORE. The difference is in cluster mode: it is
accepted for a key whose slot this node is importing, as if the command had
been preceded by ASKING. MIGRATE
sends it while a slot moves between nodes. You do not normally send it
yourself.
Options
Section titled “Options”The options are those of RESTORE: REPLACE, ABSTTL,
IDLETIME seconds and FREQ frequency.
Return value
Section titled “Return value”| Case | RESP2 | RESP3 |
|---|---|---|
| Restored | Simple string OK |
Simple string OK |
The error replies are the same as for RESTORE.
Examples
Section titled “Examples”127.0.0.1:6379> RESTORE-ASKING greeting 0 "\x00\x05hello\t\x00\xb3\x80\x8e\xba1\xb2C\xbb"OKCompatibility
Section titled “Compatibility”Same as Redis 7 and Valkey 8.
See also
Section titled “See also”Was this page helpful?
Thanks for the feedback.