对象频率

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

此命令返回存储在的Redis对象的对数访问频率计数器。

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

RESP2 回复

One of the following: Integer reply: the counter's value. Nil reply: if key doesn't exist.

RESP3 回复

One of the following: Integer reply: the counter's value. Null reply: if key doesn't exist.
RATE THIS PAGE
Back to top ↑