WebHandlerCache
in package
implements
RequestHandlerInterface
Delete or clear cache for web helper.
Interfaces, Classes, Traits and Enums
- RequestHandlerInterface
Table of Contents
- CLEAR_OPERATION = 'CLEAR'
- DELETE_OPERATION = 'DELETE'
- $cacheHandler : CacheHandlerInterface
- __construct() : self
- WebHandlerCache instance constructor.
- handle() : ResponseInterface
- Handle the request for helper.
Constants
CLEAR_OPERATION
private
mixed
CLEAR_OPERATION
= 'CLEAR'
DELETE_OPERATION
private
mixed
DELETE_OPERATION
= 'DELETE'
Properties
$cacheHandler
private
CacheHandlerInterface
$cacheHandler
Methods
__construct()
WebHandlerCache instance constructor.
public
__construct(CacheHandlerInterface $cacheHandler) : self
Parameters
- $cacheHandler : CacheHandlerInterface
Return values
self —handle()
Handle the request for helper.
public
handle(ServerRequestInterface $request) : ResponseInterface
Query params :
- o : Operation to run, 'delete' or 'clear'.
- k : Cache sha1 key string for delete operation.
- p : URL path string for delete operation, if 'k' not exists else it will use 'k' parameter.
Parameters
- $request : ServerRequestInterface
-
Request instance.
Return values
ResponseInterface —Text response message result.