mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-08 01:05:37 +08:00
2.3 KiB
2.3 KiB
ZM\Store\LightCache
init
public function init(array $config): bool|mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| config | array | 配置 |
返回
| 类型 | 描述 |
|---|---|
| bool | mixed |
get
public function get(string $key): null|mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string |
返回
| 类型 | 描述 |
|---|---|
| null | mixed |
getExpire
public function getExpire(string $key): null|mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string |
返回
| 类型 | 描述 |
|---|---|
| null | mixed |
getExpireTS
public function getExpireTS(string $key): null|mixed
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string |
返回
| 类型 | 描述 |
|---|---|
| null | mixed |
set
public function set(array|int|string $value, string $key, int $expire): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | array | int |
| key | string | |
| expire | int |
返回
| 类型 | 描述 |
|---|---|
| bool |
update
public function update(mixed $value, string $key): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| value | mixed | |
| key | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
isset
public function isset(string $key): bool
描述
作者很懒,什么也没有说
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| key | string |
返回
| 类型 | 描述 |
|---|---|
| bool |
savePersistence
public function savePersistence(): mixed
描述
这个只能在唯一一个工作进程中执行
返回
| 类型 | 描述 |
|---|---|
| mixed |