Documentation

ResponseCacheMiddleware
in package
implements MiddlewareInterface

Middleware for cache every response data that not in exclude rules.

Interfaces, Classes, Traits and Enums

MiddlewareInterface

Table of Contents

$cacheHandler  : CacheHandlerInterface
Cache handler instance.
__construct()  : self
Do nothing.
process()  : ResponseInterface
Cache every request that not in exclude rules.

Properties

Methods

__construct()

Do nothing.

public __construct(CacheHandler $cacheHandler) : self
Parameters
$cacheHandler : CacheHandler

Cache handler instance.

Return values
self

ResponseCacheMiddleware instance.

process()

Cache every request that not in exclude rules.

public process(ServerRequestInterface $request, RequestHandlerInterface $handler) : ResponseInterface
Parameters
$request : ServerRequestInterface
$handler : RequestHandlerInterface
Return values
ResponseInterface

Search results