OBJECT IDLETIME
- Usage:
-
OBJECT IDLETIME key
- Complexity:
- O(1)
- Since:
- 2.2.3
- ACL Categories:
- @keyspace, @read, @slow
This command returns the time in seconds since the last access to the value stored at <key>.
The command is only available when the maxmemory-policy configuration directive is not set to one of the LFU policies.
Reply
One of the following:
Integer: the idle time in seconds.
Null: if key doesn't exist.