对象空闲时间

Syntax
OBJECT IDLETIME key
Available since:
2.2.3
Time complexity:
O(1)
ACL categories:
@keyspace, @read, @slow,

此命令返回自上次访问存储在中的值以来的时间(以秒为单位)。

该命令仅在maxmemory-policy配置指令未设置为LFU策略之一时可用。

RESP2 回复

One of the following: Integer reply: the idle time in seconds. Nil reply: if key doesn't exist.

RESP3 回复

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