Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

can't connect to redis

Hello!!! Help please ...

try {

$frontCache = new \Phalcon\Cache\Frontend\Data(array(
    "lifetime" => 172800

//Create the Cache setting redis connection options
$cache = new Phalcon\Cache\Backend\Redis($frontCache, array(
    'host' => 'localhost',
    'port' => 6379,
    'auth' => '',
    'persistent' => false

//Cache arbitrary data
$cache->save('my-data', '123');

//Get data
$data = $cache->get('my-data');
echo $data;

} catch (Exception $e) { die($e->getMessage()); }

But nothing ...

But terminal "redis-server" and "redis-cli" working well

please tell me any instructions on configuring redis with Falcon

But what's not working ? What exception you have, what error etc ?


Fatal error: Class 'redis' not found in /var/www/


Strangely enough, but the local version works as redis


Install redis extension for php.

and check your iptables or firewall..


thanks friends. You really helped to understand.