[]previous and next page

KvCacheStoreOptions

Options of createKvCacheStore.

Options of createKvCacheStore.

Import#

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

Signature#

ts
interface KvCacheStoreOptions {
  /** Prefix of every key. Default `"dusk:isr:"`. */
  readonly prefix?: string;
  /** Keys a tag indexes; the oldest leaves the index past it. Default 10 000. */
  readonly maxKeysPerTag?: number;
  /** Clock in epoch milliseconds. Default `Date.now`. */
  readonly now?: () => number;
}

Members#

Name Type Description
prefix? readonly prefix?: string Prefix of every key. Default "dusk:isr:".
maxKeysPerTag? readonly maxKeysPerTag?: number Keys a tag indexes; the oldest leaves the index past it. Default 10 000.
now? readonly now?: () => number Clock in epoch milliseconds. Default Date.now.