redis-async-NoSQL-Database:用于PHP的异步redis客户端库。 内置连接池

时间:2021-02-03 04:17:52
【文件属性】:
文件名称:redis-async-NoSQL-Database:用于PHP的异步redis客户端库。 内置连接池
文件大小:7KB
文件格式:ZIP
更新时间:2021-02-03 04:17:52
redis database nosql nosql-database NoSQLPHP 重新同步 基于事件的异步非阻塞 内置连接池 支持并发请求 如何使用 #### 1。 安装Swoole扩展 pecl install swoole #### 2。 运行示例代码 require __DIR__. '/src/Swoole/Async/RedisClient.php' ; $ redis = new Swoole \ Async \ RedisClient ( '127.0.0.1' ); $ redis -> select ( '2' , function () use ( $ redis ) { $ redis -> set ( 'key' , 'value-rango' , function ( $ result , $ success ) use ( $ redis ) { for ( $ i = 0 ; $ i < 3> get ( 'key' , function ( $ result , $ success ) { echo "redi
【文件预览】:
redis-async-NoSQL-Database-master
----src()
--------Swoole()
----README.md(696B)
----tests()
--------hmget.php(262B)
--------sadd.php(215B)
--------hexists.php(209B)
--------smembers.php(220B)
--------hmset.php(232B)
--------big.php(195B)
----.gitignore(8B)
----run.php(452B)
----server.php(715B)

网友评论