OBJECT REFCOUNT key

Available since: 2.2.3

Time complexity: O(1)

ACL categories: @keyspace @read @slow

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

Return

Integer reply

The number of references.