dns.cache — Lilush API

←index

← dns

Overview

TTL-aware DNS record cache. Uses in-memory hash tables by default, or MNEME-backed persistent storage when configured.

Functions

NameSignature
newnew(cfg) -> cache

new(cfg) -> cache

Create a new DNS cache instance

Configuration fields (all optional):

The returned cache object provides these methods: