function getSetting
getSetting(key: string): Promise<string | null>

Get a setting value. Reads from the in-memory cache, loading all settings in one query on first access or after TTL expiry.

Parameters

key: string

Return Type

Promise<string | null>

Usage

import { getSetting } from "doc.ts";