Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
interface Persistence
import { type Persistence } from "https://deno.land/x/frugal@0.5.0/docs/dep/frugal/core.ts";

A persistence layer

Methods

set(path: string, content: string): Promise<void>

Set the given content at the given path

open(path: string): Promise<ReadableStream<Uint8Array>>

Get a stream of the content at the given path

read(path: string): Promise<string>

Get the content at the given path in a string

delete(path: string): Promise<void>

delete the content at the given path