···135135# Default value: 67108864
136136#lru_bytes = 67108864
137137138138-[identity_cache]
139139-# Maximum number of DID entries retained by the in-process identity cache.
140140-#
141141-# Can also be specified via environment variable `BOBBIN_IDENTITY_CACHE_ENTRIES`.
142142-#
143143-# Default value: 100000
144144-#max_entries = 100000
145145-146138[search]
147139# The heap size in bytes for the in-mem tantivy writer. Larger values
148140# trade RAM for fewer segment merges - the index itself lives in
···11import type { BobbinContext, XrpcRequestInit } from "./client";
22import type { Nsid } from "@atcute/lexicons/syntax";
33-import type { MiniDoc } from "./identity";
33+import { INVALID_HANDLE, type MiniDoc } from "./identity";
44import { jsonPost } from "./_request";
5566// payload types, also the keys payloads land under in the data sidecar
···6464 source: LinkSource
6565): MiniDoc | undefined =>
6666 did !== undefined ? (data[did]?.[source]?.[TYPE_MINIDOC] as MiniDoc | undefined) : undefined;
6767+6868+export const handleOf = (data: Sidecar, did: string | undefined, source: LinkSource): string =>
6969+ miniDocOf(data, did, source)?.handle ?? INVALID_HANDLE;