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

    Interface MemorizeSetEvent

    Emitted when a new response is stored in the cache.

    cache.on(MemorizeEventType.Set, (e) => {
    console.log(`stored ${e.key} — status ${e.statusCode}`);
    });
    interface MemorizeSetEvent {
        body: unknown;
        contentType: string;
        expiresAt: number | null;
        key: string;
        statusCode: number;
        type: Set;
    }
    Index

    Properties

    body: unknown

    The stored response body.

    contentType: string

    Content-Type header value of the stored response.

    expiresAt: number | null

    Expiry timestamp in ms, or null if no TTL was set.

    key: string

    The cache key (full request URL).

    statusCode: number

    HTTP status code of the stored response.

    type: Set