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

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

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

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

Parameters

optional
query: Omit<Query<[string]>, "formats"> = [UNSUPPORTED]
optional
formats: FormatsArg<F>