OBJECT REFCOUNT

Since 1.1.0Keys

Syntax

OBJECT REFCOUNT key

Returns 1 for a key that exists: in KiviDB a value is not shared between keys.

Reply

  • 1.
  • nil if the key does not exist.

Examples

> SET a 123
OK
> OBJECT REFCOUNT a
(integer) 1