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

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

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

Fetch latest version of a doc at a path from the cache. Returns an empty array in case of a cache miss, and queries the backing replica.

Parameters

path: Path
optional
format: FormatArg<F>

Returns

FormatDocType<F> | undefined