OBJECT IDLETIME
Note
Official reference: OBJECT IDLETIME.
Read the time in seconds since a key was last accessed.
Syntax
OBJECT IDLETIME key
This command is unavailable with LFU eviction policies.
Results
| Return | Rows | Content |
|---|---|---|
| ResultSet | 1 | RESULT field, LONG type |
Example
SET demo:message hello
OBJECT IDLETIME demo:message