OBJECT REFCOUNT

Usage:
OBJECT REFCOUNT key
Complexity:
O(1)
Since:
2.2.3
ACL Categories:
@keyspace, @read, @slow

This command returns the reference count of the stored at <key>.

Reply

One of the following:

Integer: the number of references.

Null: if key doesn't exist.