Skip to main content

Built and signed on GitHub Actions

Works with
This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
•JSR Score94%•
License
MIT
•
Downloads1,113/wk
•
Published3 days ago (2.4.1)

An ActivityPub/fediverse server framework

class MemoryKvStore
implements KvStore
Since 0.5.0

A key–value store that stores values in memory. Do not use this in production as it does not persist values.

Methods

cas(
key: KvKey,
expectedValue: unknown,
newValue: unknown,
): Promise<boolean>

{@inheritDoc KvStore.cas}

{@inheritDoc KvStore.delete}

get<T = unknown>(key: KvKey): Promise<T | undefined>

{@inheritDoc KvStore.get}

list(prefix?: KvKey): AsyncIterable<KvStoreListEntry>

{@inheritDoc KvStore.list}

set(
key: KvKey,
value: unknown,
): Promise<void>

{@inheritDoc KvStore.set}

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { MemoryKvStore } from "@fedify/fedify";
or

Import directly with a jsr specifier

import { MemoryKvStore } from "jsr:@fedify/fedify@^2.4.1";