Its my fifth day trying to fix this on my mac mountain-lion. I used home brew to install phpredis using this http://www.astonishdesign.com/blog/native-lamp-stack-mac-os-x. By the way home brew was also used to install redis. My php info shows
redis
Redis Support enabled
Redis Version 2.2.3
when I run this code
$redis = new Redis();
$redis->connect('127.0.0.1', 6379);
$redis->set('key', 'val');
echo $redis->get('key')
;
I get this error
Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away' in /Library/WebServer/Documents/test/index.php on line 6
( ! ) RedisException: Redis server went away in /Library/WebServer/Documents/test/index.php on line 6
What am I missing