[フレーム]
Docs Pricing
Login Book a meeting Try Redis

DUMP

Syntax
DUMP key
Available since:
Redis Open Source 2.6.0
Time complexity:
O(1) to access the key and additional O(N*M) to serialize it, 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(1*M) where M is small, so simply O(1).
ACL categories:
@keyspace, @read, @slow,

Serialize the value stored at key in a Redis-specific format and return it to the user. The returned value can be synthesized back into a Redis key using the RESTORE command.

The serialization format is opaque and non-standard, however it has a few semantic characteristics:

The serialized value does NOT contain expire information. In order to capture the time to live of the current value the PTTL command should be used.

If key does not exist a nil bulk reply is returned.

Examples

> SET mykey 10
OK
> DUMP mykey
"\x00\xc0\n\n\x00n\x9fWE\x0e\xaec\xbb"

Return information

One of the following:

RATE THIS PAGE
Back to top ↑

AltStyle によって変換されたページ (->オリジナル) /