Skip to main content
Module

x/earthstar/mod.ts>ReplicaCache#onCacheUpdated

Storage for private, distributed, offline-first applications.
Latest
method ReplicaCache.prototype.onCacheUpdated
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.2.2/mod.ts";

Subscribes to the cache, calling a callback when previously returned results can be considered stale. Returns a function for unsubscribing.

Parameters

callback: () => void

Returns

() => void