OBJECT REFCOUNT
Syntax
OBJECT REFCOUNT key
- Available since:
- Redis Open Source 2.2.3
- Time complexity:
- O(1)
- ACL categories:
-
@keyspace,@read,@slow, - Compatibility:
- Redis Enterprise and Redis Cloud compatibility
This command returns the reference count of the stored at <key>.
Redis Enterprise and Redis Cloud compatibility
| Redis Enterprise |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
✅ Standard |
Return information
One of the following:
Integer reply: the number of references.
Nil reply: if key doesn't exist.