Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

15
vendor/swoole/examples/redis/client.php vendored Executable file
View 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();
});
});
});
});