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, T3>
Re-export
import { LargeCollection } from "https://deno.land/x/kvdex@v0.19.4/mod.ts";

Constructors

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

Methods

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