prorm API Reference
    Preparing search index...

    Class HazelcastStore

    HazelcastStore wraps a hazelcast-client Client and exposes its distributed IMap operations as a typed, promise-based API.

    Implements

    Index
    name: "hazelcast" = 'hazelcast'

    The name of the store (e.g. 'mongodb', 'redis', 'dynamodb')

    library: "hazelcast-client" = 'hazelcast-client'

    The client library being used

    • Resolve (and cache) a distributed IMap handle by name.

      Parameters

      • name: string

      Returns Promise<HazelcastMap>

    • Put value under key in map, returning the previous value (or null).

      Parameters

      • map: HazelcastMap
      • key: unknown
      • value: unknown

      Returns Promise<unknown>

    • Get the value stored under key in map (or null if absent).

      Parameters

      • map: HazelcastMap
      • key: unknown

      Returns Promise<unknown>

    • Remove key from map, returning the removed value (or null).

      Parameters

      • map: HazelcastMap
      • key: unknown

      Returns Promise<unknown>

    • Return all keys currently in map as an array.

      Parameters

      • map: HazelcastMap

      Returns Promise<unknown[]>

    • Return the number of entries in map.

      Parameters

      • map: HazelcastMap

      Returns Promise<number>