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.