Documentation

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

Properties

Methods

handle()

Handle the request for helper.

public handle(ServerRequestInterface $request) : ResponseInterface

Query params :

  1. o : Operation to run, 'delete' or 'clear'.
  2. k : Cache sha1 key string for delete operation.
  3. 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.

Search results