CacheRequest middleware

Methods

  • Cache middleware function

    Parameters

    Returns RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

  • Request cache middleware handler

    Parameters

    • provider: Redis

      redis client

    • Optionaloptions: Partial<CacheConfig>

      Cache options

    Returns RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>

  • Cache middleware instance

    Parameters

    • client: Redis

      redis client

    • Optionaloptions: Partial<CacheConfig>

    Returns Cache