__construct() __construct(array $options = []) : mixed 架构函数 Parameters array $options 参数 Returns mixed —
getCacheKey() getCacheKey(string $name) : string 取得变量的存储文件名 Parameters string $name 缓存变量名 Returns string —
get() get(string $name, mixed $default = null) : mixed 读取缓存 Parameters string $name 缓存变量名 mixed $default 默认值 Returns mixed —
set() set(string $name, mixed $value, int $expire = null) : bool 写入缓存 Parameters string $name 缓存变量名 mixed $value 存储数据 int $expire 有效时间 0为永久 Returns bool —
inc() inc(string $name, int $step = 1) : false|int 自增缓存(针对数值缓存) Parameters string $name 缓存变量名 int $step 步长 Returns false|int —
dec() dec(string $name, int $step = 1) : false|int 自减缓存(针对数值缓存) Parameters string $name 缓存变量名 int $step 步长 Returns false|int —