We are moving our forum in GitHub Discussions. For questions about Phalcon v3/v4 you can visit here and for Phalcon v5 here.

Unable to catch Redis cache exception

Hi, please consider these codes

    $frontCache = new FrontData([
        'lifetime' => \Simpledom\Core\Classes\Config::GetCacheLifetime()

    // Create the Cache setting redis connection options
    $cache = new Redis($frontCache, [
        'host' => ""
        'port' => 2020,
        'persistent' => false,
        'index' => 0,

    // consider redis take down befor executing the following line
    $cache ->save('my-data', [1, 2, 3, 4, 5])

the problem with the save method is that it does not throw any catchable exception and It only shows : Could not connect to the Redisd server and do nto allow the application to continue

please consider adding exception for save, get, etc methods and also make afunction to know wheter the redis is Up or Down


Create issue on github.