content/commands/object-idletime.md
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.
| Redis Software | Redis Cloud | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:------| | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | <span title="Supported">✅ Standard</span> <span title="Supported"><nobr>✅ Active-Active</nobr></span> | |
{{< multitabs id="object-idletime-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following: Integer reply: the idle time in seconds. Nil reply: if key doesn't exist.
-tab-sep-
One of the following: Integer reply: the idle time in seconds. Null reply: if key doesn't exist.
{{< /multitabs >}}