No connection could be made because the target machine actively refused it. [tcp://127.0.0.1:6379] in laravel 4.My code is:
$redis = Redis::connection();
$redis->set('name', 'Taylor');
$name = $redis->get('name');
$values = $redis->lrange('names', 5, 10);
The problem could be that your redis instance either isn't running at all or is running on different host and/or port address (or port 6379 is closed by firewall).
After Installing redis server(you can download it form redis) you should simply run file redis-server.exe
often located in C:\Program Files\Redis\
and refresh your page!