Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/earthstar/src/replica/replica_cache.ts>ReplicaCache#getLatestDocs

Earthstar is a tool for private, undiscoverable, offline-first networks.
Go to Latest
method ReplicaCache.prototype.getLatestDocs
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.0-beta.6/src/replica/replica_cache.ts";

Fetch latest versions of all docs from the cache. Returns an empty array in case of a cache miss, and queries the backing replica.

Parameters

optional
formats: FormatsArg<F>