prorm API Reference
    Preparing search index...

    Class DaxStore

    DaxStore wraps an amazon-dax-client (DynamoDB-compatible) client behind the NoSqlStore lifecycle and an edge-KV get/set/del/list/incr surface over a single DynamoDB table.

    Implements

    Index
    name: "dax" = 'dax'

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

    library: "amazon-dax-client" = 'amazon-dax-client'

    The client library being used

    • Read a key via getItem. Returns the stored string, or null if missing.

      Parameters

      • key: string

      Returns Promise<string | null>

    • Write value under key via putItem. Strings are stored verbatim; other values are JSON-serialized. options.ttl/options.expiration populate the table's TTL attribute (ttlAttr).

      Parameters

      Returns Promise<void>

    • Delete a key via deleteItem.

      Parameters

      • key: string

      Returns Promise<void>

    • List key names via scan, optionally filtered to those beginning with prefix.

      Parameters

      • Optionalprefix: string

      Returns Promise<string[]>

    • Increment the numeric value at key by by (default 1). Implemented as a non-atomic read-modify-write over getItem/putItem.

      Parameters

      • key: string
      • by: number = 1

      Returns Promise<number>