Library for creating redis instance depends on application / server possibilities
The fastest way to install Redis proxy is to add it to your project using Composer (http://getcomposer.org/).
- Install Composer:
curl -sS https://getcomposer.org/installer | php
- Require Redis proxy as a dependency using Composer:
php composer.phar require lulco/redis-proxy
- Install Redis proxy:
php composer.phar update
$redis = new \RedisProxy\RedisProxy($host, $port);
$redis->select($database);
$redis->hset($key, $field, $value);
$redis->hlen($key);
$redis->hget($key, $field);
$redis->hgetall($key);
...