Skip to content

Ask the HotKV docs

Answers come only from these docs and can be wrong; check the linked pages before you rely on them.

RESTORE-ASKING

Last updated
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.

The options are those of RESTORE: REPLACE, ABSTTL, IDLETIME seconds and FREQ frequency.

Case RESP2 RESP3
Restored Simple string OK Simple string OK

The error replies are the same as for RESTORE.

127.0.0.1:6379> RESTORE-ASKING greeting 0 "\x00\x05hello\t\x00\xb3\x80\x8e\xba1\xb2C\xbb"
OK

Same as Redis 7 and Valkey 8.

RESTORE, MIGRATE, ASKING, DUMP