update api docs

This commit is contained in:
Github Build Bot
2022-04-02 17:31:48 +00:00
parent 520099aaba
commit c1a877489b
24 changed files with 502 additions and 728 deletions

View File

@@ -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

View File

@@ -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 | |
### 返回

View File

@@ -1,28 +1,5 @@
# ZM\Store\ZMAtomic
## get
```php
public function get(mixed $name): Swoole\Atomic
```
### 描述
作者很懒,什么也没有说
### 参数
| 名称 | 类型 | 描述 |
| -------- | ---- | ----------- |
| name | mixed | |
### 返回
| 类型 | 描述 |
| ---- | ----------- |
| Swoole\Atomic | |
## init
```php