Skip to content

Commit 9ecab2e

Browse files
committed
优化
1 parent 06bdaad commit 9ecab2e

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
## Delayer PHP 客户端
22

3+
客户端使用非常简单,提供了 `push``pop``bPop``remove` 四个方法操作任务。
34

5+
## 安装
6+
7+
```shell
8+
composer require mixstart/delayer-client-php:1.*
9+
```
10+
11+
## DEMO
12+
13+
### `push`
14+
15+
https://github.com/mixstart/delayer-client-php/blob/master/tests/client_push_test.php
16+
17+
### `pop`
18+
19+
https://github.com/mixstart/delayer-client-php/blob/master/tests/client_pop_test.php
20+
21+
### `bPop`
22+
23+
https://github.com/mixstart/delayer-client-php/blob/master/tests/client_bpop_test.php
24+
25+
### `remove`
26+
27+
https://github.com/mixstart/delayer-client-php/blob/master/tests/client_remove_test.php
428

529
## License
630

tests/client_bpop_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
'password' => '',
1010
];
1111
$client = new \Delayer\Client($config);
12-
$message = $client->bpop('close_order', 10);
12+
$message = $client->bPop('close_order', 10);
1313
var_dump($message);

0 commit comments

Comments
 (0)