import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.1/mod.ts";
Subscribes to the cache, calling a callback when previously returned results can be considered stale. Returns a function for unsubscribing.
x/earthstar/mod.ts>ReplicaCache#onCacheUpdated
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.1/mod.ts";
Subscribes to the cache, calling a callback when previously returned results can be considered stale. Returns a function for unsubscribing.