\Framework\AttributesCache

Summary

Methods
Properties
Constants
__construct()
getMiddleware()
$ttl
$key
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$ttl

$ttl : int

Type

int

Methods

__construct()

__construct(int  $ttl = 60, string|null  $key = null) : mixed

Parameters

int $ttl

缓存有效期(秒),默认 60 秒

string|null $key

自定义缓存 Key,留空则根据 URL 自动生成

Returns

mixed —

getMiddleware()

getMiddleware() : string|string[]

返回该注解关联的中间件类名 (或类名数组)

Returns

string|string[] —