Skip to main content
This release is 0 versions behind 24.6.2 — the latest version of @rivet-gg/actor. Jump to latest

🔩 Rivet Actors have built-in RPC, state, and events — the easiest way to build modern applications.

This package works with Deno
This package works with Deno
JSR Score
88%
Published
4 weeks ago (24.6.2-rc.2)
function put
put<
K,
V,
>
(
key: K,
value: V | ArrayBuffer,
options?: PutOptions,
): Promise<void>

Stores a key-value pair in the key-value store.

Type Parameters

Parameters

key: K
  • The key under which the value will be stored.
value: V | ArrayBuffer
  • The value to be stored, which will be serialized.
optional
options: PutOptions
  • Options.

Return Type

Promise<void>

A promise that resolves when the operation is complete.

Add Package

deno add jsr:@rivet-gg/actor

Import symbol

import { put } from "@rivet-gg/actor/kv";

---- OR ----

Import directly with a jsr specifier

import { put } from "jsr:@rivet-gg/actor/kv";