Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/willow/mod.deno.ts>KvDriver

Exploring Willow in the most efficient and sound programming language
Go to Latest
interface KvDriver
Re-export
import { type KvDriver } from "https://deno.land/x/willow@0.2.1/mod.deno.ts";

Methods

get<Value>(key: KvKey): Promise<Value | undefined>
set<Value>(key: KvKey, value: Value): Promise<void>
delete(key: KvKey): Promise<boolean>

Return true if something was deleted.

list<Value>(selector: { start?: KvKey; end?: KvKey; prefix?: KvKey; }, opts?: { reverse?: boolean; limit?: number; batchSize?: number; }): AsyncIterable<{ key: KvKey; value: Value; }>

Matches an entry whose key is exactly prefix (unlike Deno.Kv). limit must not be zero (like Deno.Kv).

Entries must match both the prefix and be included in the start-end range.

clear(opts?: { prefix?: KvKey; start?: KvKey; end?: KvKey; }): Promise<void>

Entries must match both the prefix and be included in the start-end range to be cleared.

batch(): KvBatch