You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
15
vendor/swoole/examples/redis/client.php
vendored
Executable file
15
vendor/swoole/examples/redis/client.php
vendored
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$client = new swoole_redis;
|
||||
$client->connect('127.0.0.1', 6379, function (swoole_redis $client, $result) {
|
||||
echo "connect\n";
|
||||
$client->set('key', 'swoole', function (swoole_redis $client, $result) {
|
||||
echo "set key OK\n";
|
||||
$client->get('key', function (swoole_redis $client, $result) {
|
||||
var_dump($result);
|
||||
$client->keys('*', function (swoole_redis $client, $result) {
|
||||
var_dump($result);
|
||||
$client->close();
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user