MemoryKVStoreOptions
Options of createMemoryKVStore.
Options of createMemoryKVStore.
Import#
ts
import type { MemoryKVStoreOptions } from "@shadow-js/dusk/server";
Signature#
ts
interface MemoryKVStoreOptions {
/** Most entries kept; the least recently used is evicted first. Default 10 000. */
readonly maxEntries?: number;
/** Largest value in bytes of JSON text. Default 1 MiB. */
readonly maxValueBytes?: number;
/** Clock in epoch milliseconds. Default `Date.now`. */
readonly now?: () => number;
}
Members#
| Name | Type | Description |
|---|---|---|
maxEntries? |
readonly maxEntries?: number |
Most entries kept; the least recently used is evicted first. Default 10 000. |
maxValueBytes? |
readonly maxValueBytes?: number |
Largest value in bytes of JSON text. Default 1 MiB. |
now? |
readonly now?: () => number |
Clock in epoch milliseconds. Default Date.now. |