DialCache TypeScript API - v0.26.0
    Preparing search index...

    Class JsonSerializer<T>

    The native JSON serializer used by default for Redis values. The generic type is a caller assertion; serialization does not perform semantic validation.

    Type Parameters

    • T = unknown

    Implements

    Index
    • Async implementations must settle within an application-defined deadline. The serialized input is borrowed and immutable. Implementations must not mutate a Buffer passed here because DialCache may retain the exact payload for stale recovery or call load again for best-effort shadow validation; copy it first if mutation is required. Repeated loads of the same payload must be independent.

      Parameters

      • value: string | Buffer<ArrayBufferLike>

      Returns Promise<T>