PHP8 The Yac class
2023-10-16 15:38 更新
(PECL yac >= 1.0.0)
简介
类摘要
class Yac {
/* 属性 */
protected $_prefix;
/* 方法 */
public __construct(string $prefix = "")
public add(string $keys, mixed $value, int $ttl = 0): bool
public add(array $key_vals): bool
public delete(string|array $keys, int $ttl = ?): bool
public dump(int $num): mixed
public flush(): bool
public get(string|array $key, int &$cas = null): mixed
public __get(string $key): mixed
public info(): array
public set(string $keys, mixed $value, int $ttl = 0): bool
public add(array $key_vals): bool
public __set(string $keys, mixed $value): mixed
}
属性
- _prefix
目录
- Yac::add — 存储到缓存
- Yac::__construct — 构造函数
- Yac::delete — 从缓存中删除项目
- Yac::dump — 转储缓存
- Yac::flush — 清空缓存
- Yac::get — 从缓存中检索值
- Yac::__get — 获取器
- Yac::info — 缓存状态
- Yac::set — 存储到缓存
- Yac::__set — 设置器
以上内容是否对您有帮助:
更多建议: