prorm API Reference
    Preparing search index...

    Class CoherenceStore

    CoherenceStore wraps Coherence's REST API behind the NoSqlStore lifecycle and exposes named-cache key/value operations.

    Implements

    Index
    name: "coherence" = 'coherence'

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

    library: "fetch" = 'fetch'

    The client library being used

    • Resolve (and cache) a named-cache handle.

      Parameters

      • name: string

      Returns Promise<CoherenceCache>

    • Store value under key in map (PUT /<cache>/<key>).

      Parameters

      • map: CoherenceCache
      • key: string
      • value: unknown

      Returns Promise<void>

    • Read key from map (GET /<cache>/<key>); null if absent.

      Parameters

      • map: CoherenceCache
      • key: string

      Returns Promise<any>

    • Remove key from map (DELETE /<cache>/<key>).

      Parameters

      • map: CoherenceCache
      • key: string

      Returns Promise<any>

    • List all keys in map (GET /<cache>/keys).

      Parameters

      • map: CoherenceCache

      Returns Promise<any[]>

    • Number of entries in map (GET /<cache>/count).

      Parameters

      • map: CoherenceCache

      Returns Promise<number>