2017 © Pedro Peláez
 

library php-redis-sentinel

php library redis sentinel.

image

lancerhe/php-redis-sentinel

php library redis sentinel.

  • Sunday, August 30, 2015
  • by lancerhe
  • Repository
  • 0 Watchers
  • 4 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 19 % Grown

The README.md

PHP Redis Sentinel

Latest Stable Version Total Downloads Latest Unstable Version License, (*1)

Crypt for AES, RSA, 3DES and some special algorithms., (*2)

Requirements

PHP5.3.0 or later, (*3)

Installation

Create or modify your composer.json, (*4)

``` json { "require": { "lancerhe/php-redis-sentinel": "dev-master" } }, (*5)


Usage ----- ``` php <?php require('./vendor/autoload.php'); $master_name = 'my_master'; $sentinel = new \RedisSentinel\Sentinel($master_name); $sentinel->add(new \RedisSentinel\Client('192.168.1.2', 26379)); $sentinel->add(new \RedisSentinel\Client('192.168.1.3', 26379)); $sentinel->add(new \RedisSentinel\Client('192.168.1.4', 26379)); var_dump( $sentinel->getMaster() ); var_dump( $sentinel->getSlaves() ); var_dump( $sentinel->getSlave() ); // Random, one of slaves.

The Versions

30/08 2015

dev-master

9999999-dev

php library redis sentinel.

  Sources   Download