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