Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/earthstar/mod.ts>ReplicaCache#queryDocs

Storage for private, distributed, offline-first applications.
Go to Latest
method ReplicaCache.prototype.queryDocs
import { ReplicaCache } from "https://deno.land/x/earthstar@v10.0.1/mod.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>