[]previous and next page

KVListOptions

Options of list.

Options of list.

Import#

ts
import type { KVListOptions } from "@shadow-js/dusk/server";

Signature#

ts
interface KVListOptions {
  /** Only keys starting with this text. Default `""`. */
  readonly prefix?: string | undefined;
  /** Keys per page, 1 to 1000. Default 100. */
  readonly limit?: number | undefined;
  /** The `cursor` of the previous page. */
  readonly cursor?: string | undefined;
}

Members#

Name Type Description
prefix? readonly prefix?: string | undefined Only keys starting with this text. Default "".
limit? readonly limit?: number | undefined Keys per page, 1 to 1000. Default 100.
cursor? readonly cursor?: string | undefined The cursor of the previous page.