xp-forge/redis
最新稳定版本:v1.2.0
Composer 安装命令:
composer require xp-forge/redis
包简介
Redis Protocol
README 文档
README
Redis protocol implementation.
Example
use io\redis\RedisProtocol; $protocol= new RedisProtocol('redis://localhost'); $protocol->command('SET', 'key', 'value'); $value= $protocol->command('GET', 'key');
The port defaults to 6379 and can be changed by adding it as follows: redis://localhost:16379. To use authentication, pass it as username in the connection string, e.g. redis://secret@localhost.
Pub/Sub
use io\redis\RedisProtocol; $protocol= new RedisProtocol('redis://localhost'); $protocol->command('SUBSCRIBE', 'messages'); while ($message= $protocol->receive()) { Console::writeLine('Received ', $message); }
统计信息
- 总下载量: 2.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-08-24

