Download the PHP package huangyunjian/redis-sentine_php without Composer
On this page you can find all versions of the php package huangyunjian/redis-sentine_php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download huangyunjian/redis-sentine_php
More information about huangyunjian/redis-sentine_php
Files in huangyunjian/redis-sentine_php
Download huangyunjian/redis-sentine_php
More information about huangyunjian/redis-sentine_php
Files in huangyunjian/redis-sentine_php
Please rate this library. Is it a good library?
Informations about the package redis-sentine_php
redis-sentinel client for php based on phpredis extension.
examples 获取哨兵节点master ip和端口 和连接redis服务器
$sentinel = new \Jenner\RedisSentinel\Sentinel(); $sentinel->connect('127.0.0.1', 263719); $address = $sentinel->getMasterAddrByName('myredis');
$redis = new Redis(); $redis->connect($address['ip'], $address['port']); $info = $redis->info(); print_r($info);
php examples 文件参考 vendor/huangyunjian/redis-sentine_php/examples/simple.php
复制文件到 vendor/huangyunjian/redis-sentine_php/examples/simple.php 文件到站点目录 然后运行看看
All versions of redis-sentine_php with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4.0
The package huangyunjian/redis-sentine_php contains the following files
Loading the files please wait ....