express-memorize - v1.2.0
    Preparing search index...

    Interface CacheInfo

    A cache entry enriched with lookup metadata, returned by Memorize.get and Memorize.getAll.

    interface CacheInfo {
        body: unknown;
        contentType: string;
        expiresAt: number | null;
        key: string;
        remainingTtl: number | null;
        statusCode: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    body: unknown

    The serialized response body, as passed to res.send().

    contentType: string

    Value of the Content-Type response header (e.g. application/json; charset=utf-8).

    expiresAt: number | null

    Unix timestamp (ms) at which the entry expires, or null if it never expires.

    key: string

    The cache key — the full request path including query string (e.g. /users?page=1).

    remainingTtl: number | null

    Milliseconds remaining until the entry expires. null if the entry has no TTL.

    statusCode: number

    HTTP status code of the cached response (e.g. 200, 201).