merexo/rediska
最新稳定版本:v0.3.4
Composer 安装命令:
composer require merexo/rediska
包简介
Test. Package with predefined methods for Redis PHP
README 文档
README
Test composer package for Redis.
Installation
Installation via Composer:
composer require merexo/rediska
Host/Port
Default values: host = 'localhost', port = 6379. If you have .env, you can use arguments as null, null for host and port. In this case, Client will take $_ENV['REDIS_HOST'] for host and $_ENV['REDIS_PORT'] for port.
Example:
$client = new \Merexo\Rediska\Client(null, null); // try to take params from .env
Default Use
$client = new \Merexo\Rediska\Client; $client->cache()->set('key', 'my_value'); echo $client->cache()->get('key'); ... $stream = $client->stream('stream_key'); $key = $stream->add(['key' => 'value', 'object' => new \StdClass]); print_r($stream->get($key)); // response: ['key' => 'value', 'object' => new \StdClass] $stream->flush();
统计信息
- 总下载量: 5.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2021-10-02