Class Key

Key

A key uniquely identifies a record in the Aerospike database within a given namespace.

In your application, you must specify the namespace, set and the key itself to read and write records. When a key is sent to the database, the key value and its set are hashed into a 160-bit digest. When a database command returns a key (e.g. Query or Scan commands) it might contain either the set and key value, or just the digest.

The Namespace to which the key belongs.

The Set to which the key belongs.

The unique key value. Keys can be strings, integers or an instance of the Buffer class.

The digest value of the key.

Implements

Constructors

Properties

Methods

Constructors

  • Constructs a new Key instance.

    Parameters

    • Optionalns: null | string

      The Namespace to which the key belongs.

    • Optionalset: null | string

      The Set to which the key belongs.

    • Optionalkey:
          | null
          | string
          | number
          | BigInt
          | Buffer

      The unique key value. Keys can be strings, integers or an instance of the Buffer class.

    • Optionaldigest: null | Buffer

      The digest value of the key.

    Returns Key

Properties

digest: undefined | Buffer

The digest value of the key.

key: string | number | Buffer

The unique key value. Keys can be strings, integers or an instance of the Buffer class.

ns: string

The Namespace to which the key belongs.

set: string

he Set to which the key belongs.

Methods

MMNEPVFCICPMFPCPTTAAATR