OBJECT REFCOUNT

Usage:
OBJECT REFCOUNT key
Complexity:
O(1)
Since:
2.2.3

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

RESP2 Reply

One of the following:

Integer reply: the number of references.

Nil reply: if key doesn't exist.

RESP3 Reply

One of the following:

Integer reply: the number of references.

Null reply: if key doesn't exist.