prorm API Reference
    Preparing search index...

    Class DenoKvStore

    DenoKvStore wraps a KV Connect HTTP gateway behind the NoSqlStore lifecycle and an edge-KV get/set/del/list/incr surface.

    Implements

    Index
    name: "deno-kv" = 'deno-kv'

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

    library: "fetch" = 'fetch'

    The client library being used

    • Read a key. Returns null on a 404 (missing key).

      Parameters

      • key: string

      Returns Promise<string | null>

    • Write value under key. Strings are stored verbatim; other values are JSON-serialized. options.ttl maps to expireIn (ms), options.expiration to expireAt (absolute Unix ms).

      Parameters

      Returns Promise<void>

    • List key names, optionally filtered by 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 get/set.

      Parameters

      • key: string
      • by: number = 1

      Returns Promise<number>