Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Go to Latest
interface Persistence
import { type Persistence } from "https://deno.land/x/frugal@0.5.0/packages/core/mod.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