MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readValkey

Function readValkey

apps/api/src/config/env/validate.ts:312–317  ·  view source on GitHub ↗
(source: EnvSource)

Source from the content-addressed store, hash-verified

310});
311
312const readValkey = (source: EnvSource) => ({
313 VALKEY_HOST: source.VALKEY_HOST ?? "localhost",
314 VALKEY_PORT: toInt(source.VALKEY_PORT, 6379, "VALKEY_PORT"),
315 VALKEY_PASSWORD: source.VALKEY_PASSWORD ?? "",
316 VALKEY_DB: toInt(source.VALKEY_DB, 0, "VALKEY_DB"),
317});
318
319const readRaw = (source: EnvSource): Record<string, unknown> => ({
320 ...readCore(source),

Callers 1

readRawFunction · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected