CacheEntry

Read onlyYes
FinalYes

A closure for lazy cache entry persistence, allowing cache lifetime to be altered in the CacheDataCollector.

Also allows a custom middleware to intercept a cache entry from within a middleware.

Internal

Table of Contents

Properties

$content  : mixed
$identifier  : string

Methods

__construct()  : mixed
__invoke()  : void

Properties

Methods

__construct()

public __construct(string $identifier, mixed $content, Closure $persist) : mixed
Parameters
$identifier : string
$content : mixed
$persist : Closure

__invoke()

public __invoke(ServerRequestInterface $request) : void
Parameters
$request : ServerRequestInterface

        
On this page

Search results