mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
update api docs
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
## init
|
||||
|
||||
```php
|
||||
public function init(mixed $config): bool|mixed
|
||||
public function init(array $config): bool|mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -14,13 +14,13 @@ public function init(mixed $config): bool|mixed
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| config | mixed | |
|
||||
| config | array | 配置 |
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| bool|mixed | |
|
||||
| bool|mixed | 返回失败(false)或创建SwooleTable成功结果 |
|
||||
|
||||
|
||||
## get
|
||||
|
||||
@@ -27,7 +27,7 @@ public function get(string $table, string $key): null|mixed
|
||||
## set
|
||||
|
||||
```php
|
||||
public function set(array|int|string $value, string $table, string $key): mixed
|
||||
public function set(array|int|string $value, string $table, string $key): bool
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -46,13 +46,13 @@ public function set(array|int|string $value, string $table, string $key): mixed
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| mixed | |
|
||||
| bool | |
|
||||
|
||||
|
||||
## createTable
|
||||
|
||||
```php
|
||||
public function createTable(mixed $name, mixed $size, mixed $str_size, int $conflict_proportion): mixed
|
||||
public function createTable(float|int $conflict_proportion, string $name, int $size, int $str_size): mixed
|
||||
```
|
||||
|
||||
### 描述
|
||||
@@ -63,10 +63,10 @@ public function createTable(mixed $name, mixed $size, mixed $str_size, int $conf
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| name | mixed | |
|
||||
| size | mixed | |
|
||||
| str_size | mixed | |
|
||||
| conflict_proportion | int | |
|
||||
| conflict_proportion | float|int | |
|
||||
| name | string | |
|
||||
| size | int | |
|
||||
| str_size | int | |
|
||||
|
||||
### 返回
|
||||
|
||||
|
||||
@@ -1,28 +1,5 @@
|
||||
# ZM\Store\ZMAtomic
|
||||
|
||||
## get
|
||||
|
||||
```php
|
||||
public function get(mixed $name): Swoole\Atomic
|
||||
```
|
||||
|
||||
### 描述
|
||||
|
||||
作者很懒,什么也没有说
|
||||
|
||||
### 参数
|
||||
|
||||
| 名称 | 类型 | 描述 |
|
||||
| -------- | ---- | ----------- |
|
||||
| name | mixed | |
|
||||
|
||||
### 返回
|
||||
|
||||
| 类型 | 描述 |
|
||||
| ---- | ----------- |
|
||||
| Swoole\Atomic | |
|
||||
|
||||
|
||||
## init
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user