Skip to main content
Module

x/earthstar/src/entries/universal.ts>ReplicaCache#onCacheUpdated

Storage for private, distributed, offline-first applications.
Go to Latest
method ReplicaCache.prototype.onCacheUpdated
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.2.2/src/entries/universal.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