OBJECT FREQ

Syntax
OBJECT FREQ key
Available since:
Redis Open Source 4.0.0
Time complexity:
O(1)
ACL categories:
@keyspace, @read, @slow,
Compatibility:
Redis Enterprise and Redis Cloud compatibility

This command returns the logarithmic access frequency counter of a Redis object stored at <key>.

The command is only available when the maxmemory-policy configuration directive is set to one of the LFU policies.

Redis Enterprise and Redis Cloud compatibility

Redis
Enterprise
Redis
Cloud
Notes
✅ Standard
✅ Active-Active
✅ Standard
✅ Active-Active

Return information

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