2017 © Pedro Peláez
 

library redis-proxy

Library for creating redis instance depends on application / server possibilities

image

lulco/redis-proxy

Library for creating redis instance depends on application / server possibilities

  • Thursday, June 1, 2017
  • by lulco
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11,395 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Redis proxy

Library for creating redis instance depends on application / server possibilities, (*1)

Build Status Scrutinizer Code Quality Code Coverage SensioLabsInsight Latest Stable Version Total Downloads PHP 7 ready, (*2)

Installation

Composer

The fastest way to install Redis proxy is to add it to your project using Composer (http://getcomposer.org/)., (*3)

  1. Install Composer: curl -sS https://getcomposer.org/installer | php
  2. Require Redis proxy as a dependency using Composer: php composer.phar require lulco/redis-proxy
  3. Install Redis proxy: php composer.phar update

Usage

Single redis node

$redis = new \RedisProxy\RedisProxy($host, $port);

// Call redis methods
$redis->select($database);
$redis->hset($key, $field, $value);
$redis->hlen($key);
$redis->hget($key, $field);
$redis->hgetall($key);
...

Sentinel

$sentinels = [
    ['host' => '172.19.0.5', 'port' => 26379],
    ['host' => '172.19.0.6', 'port' => 26379],
    ['host' => '172.19.0.7', 'port' => 26379],
];
$clusterId = 'mymaster';

$redis = new \RedisProxy\RedisProxy();
$redis->setSentinelConnectionPool($sentinels, $clusterId, $database);

// Call redis methods
$redis->hset($key, $field, $value);
$redis->hlen($key);
$redis->hget($key, $field);
$redis->hgetall($key);

The Versions

01/06 2017

dev-master

9999999-dev

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

01/06 2017

0.3.1

0.3.1.0

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

01/06 2017

0.3.0

0.3.0.0

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

09/03 2017

dev-added_commands

dev-added_commands

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

08/03 2017

dev-split_to_traits

dev-split_to_traits

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

19/01 2017

0.2.1

0.2.1.0

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

16/01 2017

0.2.0

0.2.0.0

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis

22/04 2016

0.1.0

0.1.0.0

Library for creating redis instance depends on application / server possibilities

  Sources   Download

MIT

The Requires

  • php >= 5.6.0

 

The Development Requires

by Michal Lulco

php redis predis