{
  "schema_version": 2,
  "id": "commands/restore-asking",
  "title": "RESTORE-ASKING",
  "url": "https://redis.io/docs/latest/commands/restore-asking/",
  "summary": "An internal command for migrating keys in a cluster.",
  "since": "3.0.0",
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-06-15T06:26:34-07:00",
  "page_type": "content",
  "content_hash": "b29c0b9043fa9d3aaf2238d3db43d49ecf8bfee950ac30f4420779b31722b7b2",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "The `RESTORE-ASKING` command is an internal command.\nIt is used by a Redis cluster master during slot migration."
    },
    {
      "id": "required-arguments",
      "title": "Required arguments",
      "role": "content",
      "text": "<details open><summary><code>key</code></summary>\n\nThe name of the key to create.\n\n</details>\n\n<details open><summary><code>ttl</code></summary>\n\nThe time to live for the key, in milliseconds. `0` means no expiration. With `ABSTTL`, this is an absolute Unix timestamp in milliseconds.\n\n</details>\n\n<details open><summary><code>serialized-value</code></summary>\n\nThe serialized value, as produced by `DUMP`.\n\n</details>"
    },
    {
      "id": "optional-arguments",
      "title": "Optional arguments",
      "role": "parameters",
      "text": "<details open><summary><code>REPLACE</code></summary>\n\nReplace the key if it already exists.\n\n</details>\n\n<details open><summary><code>ABSTTL</code></summary>\n\nInterpret `ttl` as an absolute Unix timestamp in milliseconds rather than a relative time.\n\n</details>\n\n<details open><summary><code>IDLETIME seconds</code></summary>\n\nSet the key's idle time (for LRU eviction) to this many seconds.\n\n</details>\n\n<details open><summary><code>FREQ frequency</code></summary>\n\nSet the key's access-frequency counter (for LFU eviction) to this value.\n\n</details>"
    },
    {
      "id": "redis-software-and-redis-cloud-compatibility",
      "title": "Redis Software and Redis Cloud compatibility",
      "role": "content",
      "text": "| Redis<br />Software | Redis<br />Cloud | <span style=\"min-width: 9em; display: table-cell\">Notes</span> |\n|:----------------------|:-----------------|:------|\n| <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> | <span title=\"Not supported\">&#x274c; Standard</span><br /><span title=\"Not supported\"><nobr>&#x274c; Active-Active</nobr></span> |  |"
    },
    {
      "id": "return-information",
      "title": "Return information",
      "role": "returns",
      "text": "**RESP2:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK`.\n\n**RESP3:**\n\n[Simple string reply](../../develop/reference/protocol-spec#simple-strings): `OK`."
    }
  ],
  "examples": []
}
