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

View File

@ -0,0 +1,8 @@
<?php
go(function () {
$redis = new Swoole\Coroutine\Redis;
$redis->connect('127.0.0.1', 6379);
$redis->auth('root');
$redis->set('key', 'swoole redis work');
var_dump($redis->get('key'));
});

View File

@ -0,0 +1,7 @@
<?php
go(function (){
$redis = new Co\Redis;
$redis->connect('127.0.0.1', 6379);
$res = $redis->eval("return redis.call('get', 'key')");
var_dump($res);
});

View File

@ -0,0 +1,7 @@
<?php
go(function () {
$redis = new Co\Redis;
$redis->connect('127.0.0.1', 6379);
$res = $redis->request(['object', 'encoding', 'key1']);
var_dump($res);
});