http://php.net/manual/zh/book.dio.php
http://pecl.php.net/package/redis
php -m |grep redis
sudo pecl install redis-2.2.5.tgz
sudo find / -name "php.ini"
sudo cp /etc/php.ini /etc/php.ini20141113
sudo vi /etc/php.ini
php -m |grep redis
Redis: 54.65.74.96
Port: 6379
Version: 2.4
<?php
$redis = new Redis();
$redis->connect('54.65.74.96',6379);
$redis->set('test_key',md5('dd'));
$redis->set('151515',1515);
var_dump($redis->get('test_key'));
var_dump($redis->get('151515'));
?>