Skip to main content
Module

x/kvdex/mod.ts>LargeCollection

High-level abstraction layer for Deno KV 🦕📁
Go to Latest
class LargeCollection
extends Collection<T1, T2>
Re-export
import { LargeCollection } from "https://deno.land/x/kvdex@v0.18.5/mod.ts";

Constructors

new
LargeCollection(
kv: Deno.Kv,
key: KvKey,
model: Model<T1>,
queueHandlers: Map<string, QueueMessageHandler<QueueValue>[]>,
idempotentListener: () => void,
options?: T2,
)

Methods

private
constructLargeDocument(
id: KvId,
versionstamp: Document<T1>["versionstamp"],
): Promise<Document<T1>>
protected
handleMany<T>(
prefixKey: KvKey,
fn: (doc: Document<T1>) => T,
options: ListOptions<T1> | undefined,
)
protected
setDocument(
id: KvId | null,
value: T1,
options: SetOptions | undefined,
overwrite?,
): Promise<CommitResult<T1> | Deno.KvCommitError>
delete(...ids: KvId[]): Promise<void>
find(id: Deno.KvKeyPart, options?: FindOptions): Promise<Document<T1> | null>
findMany(ids: Deno.KvKeyPart[], options?: FindManyOptions): Promise<Document<T1>[]>