OBJECT IDLETIME

OBJECT IDLETIME key
Available since:
Redis Open Source 2.2.3
Time complexity:
O(1)
ACL categories:
@keyspace, @read, @slow,
Compatibility:
Redis Software and Redis Cloud compatibility

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.

Required arguments

key

The name of the key.

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

One of the following: Integer reply: the idle time in seconds. Nil reply: if key doesn't exist.
RATE THIS PAGE
Back to top ↑