mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 13:14:52 +08:00
76 lines
1.1 KiB
Markdown
76 lines
1.1 KiB
Markdown
# ZM\Store\LightCacheInside
|
|
|
|
## get
|
|
|
|
```php
|
|
public function get(string $table, string $key): null|mixed
|
|
```
|
|
|
|
### 描述
|
|
|
|
作者很懒,什么也没有说
|
|
|
|
### 参数
|
|
|
|
| 名称 | 类型 | 描述 |
|
|
| -------- | ---- | ----------- |
|
|
| table | string | |
|
|
| key | string | |
|
|
|
|
### 返回
|
|
|
|
| 类型 | 描述 |
|
|
| ---- | ----------- |
|
|
| null|mixed | |
|
|
|
|
|
|
## set
|
|
|
|
```php
|
|
public function set(array|int|string $value, string $table, string $key): bool
|
|
```
|
|
|
|
### 描述
|
|
|
|
作者很懒,什么也没有说
|
|
|
|
### 参数
|
|
|
|
| 名称 | 类型 | 描述 |
|
|
| -------- | ---- | ----------- |
|
|
| value | array|int|string | |
|
|
| table | string | |
|
|
| key | string | |
|
|
|
|
### 返回
|
|
|
|
| 类型 | 描述 |
|
|
| ---- | ----------- |
|
|
| bool | |
|
|
|
|
|
|
## createTable
|
|
|
|
```php
|
|
public function createTable(float|int $conflict_proportion, string $name, int $size, int $str_size): mixed
|
|
```
|
|
|
|
### 描述
|
|
|
|
作者很懒,什么也没有说
|
|
|
|
### 参数
|
|
|
|
| 名称 | 类型 | 描述 |
|
|
| -------- | ---- | ----------- |
|
|
| conflict_proportion | float|int | |
|
|
| name | string | |
|
|
| size | int | |
|
|
| str_size | int | |
|
|
|
|
### 返回
|
|
|
|
| 类型 | 描述 |
|
|
| ---- | ----------- |
|
|
| mixed | |
|