OBJECT time

Apply for Redis Developer Course Redis Regular Inspection / Technical Support Redis Enterprise Server

Get key creation time or last value modification time

Usage is OBJECT time key.
Shows the key creation time or the last value modification time.
The format is 'yyyy-mm-dd hh24:mi:ss'.
Example)
set key value - key creation time
append key value - time the value was appended (modified)
lpush mylist AAA - time AAA was added to mylist
sadd myset AAA - time AAA was added to myset

Example

Command>set key value
Result>OK
Command>object time key
Result>"2021-12-17 10:57:32"


Syntax

OBJECT time key

  • Available since Enterprise version 7.2.0.
  • Time complexity is O(1)

<< OBJECT refcount OBJECT time RANDOMKEY >>

Email 답글이 올라오면 이메일로 알려드리겠습니다.