zhamao-framework/docs/api/ZM/Store/LightCacheInside.md

76 lines
1.1 KiB
Markdown
Raw Normal View History

2022-03-27 16:42:36 +08:00
# ZM\Store\LightCacheInside
## get
```php
public function get(string $table, string $key): null|mixed
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| table | string | |
| key | string | |
2022-04-01 18:48:48 +08:00
2022-03-27 16:42:36 +08:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| null|mixed | |
## set
```php
2022-04-02 17:31:48 +00:00
public function set(array|int|string $value, string $table, string $key): bool
2022-03-27 16:42:36 +08:00
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| value | array|int|string | |
| table | string | |
| key | string | |
2022-04-01 18:48:48 +08:00
2022-03-27 16:42:36 +08:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
2022-04-02 17:31:48 +00:00
| bool | |
2022-03-27 16:42:36 +08:00
## createTable
```php
2022-04-02 17:31:48 +00:00
public function createTable(float|int $conflict_proportion, string $name, int $size, int $str_size): mixed
2022-03-27 16:42:36 +08:00
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
2022-04-02 17:31:48 +00:00
| conflict_proportion | float|int | |
| name | string | |
| size | int | |
| str_size | int | |
2022-04-01 18:48:48 +08:00
2022-03-27 16:42:36 +08:00
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| mixed | |