Skip to main content
Module

x/earthstar_replica_server/deps.ts>Earthstar.ReplicaCache#onCacheUpdated

An always-online Earthstar peer for your shares.
Latest
method Earthstar.ReplicaCache.prototype.onCacheUpdated
import { Earthstar } from "https://deno.land/x/earthstar_replica_server@4.0.0-beta.1/deps.ts";
const { ReplicaCache } = Earthstar;

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