Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/live/hypervisor/realtime/object.ts>HypervisorDiskStorage

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
class HypervisorDiskStorage
implements RealtimeStorage
import { HypervisorDiskStorage } from "https://deno.land/x/live@1.63.12/hypervisor/realtime/object.ts";

Constructors

new
HypervisorDiskStorage(opts: DiskStorageOptions)

Properties

private
dir: string
private
ignore: { includes: (str: string) => boolean; }
optional
onChange: (events: FsEvent[]) => void

Methods

delete(key: string): Promise<boolean>
delete(keys: string[]): Promise<number>
deleteAll(): Promise<void>
get<T = unknown>(key: string): Promise<T | undefined>
get<T = unknown>(keys: string[]): Promise<Map<string, T>>
list<T = unknown>(): Promise<Map<string, T>>
normalizePath(path: string)
put<T>(key: string, value: T): Promise<void>
put<T>(entries: Record<string, T>): Promise<void>

this is different from "onChange" this this is triggered by filesystem and avoid being triggered by itself.