Simple in-memory cache provider with TTL support.

This provider is the default fallback in the SDK wrapper. Expired entries are evicted lazily on read.

Implements

Constructors

Methods

Constructors

Methods

  • Type Parameters

    • T

    Parameters

    • key: string

    Returns Promise<undefined | T>

  • Type Parameters

    • T

    Parameters

    • key: string
    • value: T
    • OptionalttlMs: number

    Returns Promise<void>