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

x/willow/mod.deno.ts>Store#set

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

Create a new authorised entry for a given payload, and store both in the store. An entry will not be ingested if it is unauthorised; if a newer entry with the same path and subspace are present; or if a newer entry with a path that is a prefix of the given entry exists. See the Willow Data Model's Concepts for more information.

Additionally, if the new entry's path is a prefix of already-held older entries, those entries will be removed from the Store. See prefix pruning for more information.

Parameters

input: EntryInput<SubspaceId>
authorisation: AuthorisationOpts