prorm API Reference
    Preparing search index...

    Class VercelKvStore

    VercelKvStore wraps a @vercel/kv client behind the NoSqlStore lifecycle and an edge-KV get/set/del/list/incr surface.

    Implements

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

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

    library: "@vercel/kv" = '@vercel/kv'

    The client library being used

    • Read a key. Returns whatever the client returns (null if missing).

      Parameters

      • key: string

      Returns Promise<any>

    • Write value under key. Strings are stored verbatim; other values are JSON-serialized. options.ttl maps to Redis EX (seconds), options.expiration to EXAT (absolute Unix seconds).

      Parameters

      Returns Promise<any>

    • Delete a key. Returns the number of keys removed.

      Parameters

      • key: string

      Returns Promise<number>

    • List key names, optionally filtered by prefix (matched as <prefix>*).

      Parameters

      • Optionalprefix: string

      Returns Promise<string[]>

    • Atomically increment the numeric value at key by by (default 1).

      Parameters

      • key: string
      • by: number = 1

      Returns Promise<number>