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

    Interface MemorizeCallOptions

    Options passed when invoking cache() to create a route-level middleware.

    // This route uses a 10-second TTL instead of the global 60-second TTL.
    app.get('/products', cache({ ttl: 10_000 }), handler);
    interface MemorizeCallOptions {
        ttl?: number;
    }
    Index

    Properties

    Properties

    ttl?: number

    Time-to-live override for this specific route, in milliseconds. Takes precedence over the global ttl set in MemorizeOptions. Pass 0 or omit to fall back to the global TTL.