RESTORE key ttl serialized-value [REPLACE] [ABSTTL] [IDLETIME seconds] [FREQ frequency]

    Time complexity: O(1) to create the new key and additional O(NM) to reconstruct the serialized value, where N is the number of Redis objects composing the value and M their average size. For small string values the time complexity is thus O(1)+O(1M) where M is small, so simply O(1). However for sorted set values the complexity is O(NMlog(N)) because inserting values into sorted sets is O(log(N)).

    Create a key associated with a value that is obtained by deserializing the provided serialized value (obtained via DUMP).

    If the ABSTTL modifier was used, should represent an absolute (in milliseconds) in which the key will expire. (Redis 5.0 or greater).

    For eviction purposes, you may use the IDLETIME or modifiers. See OBJECT for more information (Redis 5.0 or greater).

    checks the RDB version and data checksum. If they don't match an error is returned.

    Simple string reply: The command returns OK on success.

    *Examples