\think\middlewareCheckRequestCache

请求缓存处理

Summary

Methods
Properties
Constants
__construct()
handle()
No public properties found
No constants found
getRequestCache()
$cache
$config
N/A
No private methods found
No private properties found
N/A

Properties

$cache

$cache : \think\Cache

缓存对象

Type

Cache

$config

$config : array

配置参数

Type

array

Methods

__construct()

__construct(\think\Cache  $cache, \think\Config  $config) : mixed

Parameters

\think\Cache $cache
\think\Config $config

Returns

mixed —

handle()

handle(\think\Request  $request, \Closure  $next, mixed  $cache = null) : \think\Response

设置当前地址的请求缓存

Parameters

\think\Request $request
\Closure $next
mixed $cache

Returns

\think\Response —

getRequestCache()

getRequestCache(\think\Request  $request) : mixed

读取当前地址的请求缓存信息

Parameters

\think\Request $request

Returns

mixed —