OBJECT IDLETIME
OBJECT IDLETIME key
@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.
The idle time in seconds.
© 2006–2022 Salvatore Sanfilippo
Licensed under the Creative Commons Attribution-ShareAlike License 4.0.
https://redis.io/commands/object-idletime/