Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.2.0/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>