我的PHP版本:5.3.10,Apache: 2.2.21,開發環境:windows
一、先下載redis擴充:
php_igbinary.dll🜎
http://pan.baidu.com/s/1c0nihUw二、Apache下的php.ini添加
extension=php_igbinary.dll extension=php_igbinary.dll.重啟Apache並
測試
$redis = new Redis();
$redis->connect('127.0.0. $redis->connect('127.0.0. $redis->connect('127.0.0.1', 63795); (' hello','kitty');
var_dump($res);
var_dump($redis->get('hello'));
. );結果:
boolean truestring 'kitty' (length=5)
kitty
以上就介紹了PHP_Redis擴展,包括了方面的內容,希望對PHP教程有興趣的朋友有幫助。