private function bootCacher()
    {
        /** @var Cacher $cacher */
        $cacher = Cacher::getInstance();

        // Default cacher if FileCache, so we do not check it
        if (MemcachedCache::itWorks()) { // Distributed cache new version
            $cacher->setDefaultCacher('MemcachedCache');
        } elseif (MemcacheCache::itWorks()) { // Distributed cache old version
            $cacher->setDefaultCacher('MemcacheCache');
        } elseif (RedisCache::itWorks()) { // No-sql database
            $cacher->setDefaultCacher('RedisCache');
        }
    }
private function bootCacher()
    {
        /** @var Cacher $cacher */
        $cacher = Cacher::getInstance();

        // Default cacher if FileCache, so we do not check it
        if (MemcachedCache::itWorks()) { // Distributed cache new version
            $cacher->setDefaultCacher('MemcachedCache');
        } elseif (MemcacheCache::itWorks()) { // Distributed cache old version
            $cacher->setDefaultCacher('MemcacheCache');
        } elseif (RedisCache::itWorks()) { // No-sql database
            $cacher->setDefaultCacher('RedisCache');
        }
    }
private function bootCacher ( ) { /** @var Cacher $cacher */ $ cacher = Cacher :: getInstance ( ) ; // Default cacher if FileCache, so we do not check it if ( MemcachedCache :: itWorks ( ) ) { // Distributed cache new version $ cacher -> setDefaultCacher ( 'MemcachedCache' ) ; } elseif ( MemcacheCache :: itWorks ( ) ) { // Distributed cache old version $ cacher -> setDefaultCacher ( 'MemcacheCache' ) ; } elseif ( RedisCache :: itWorks ( ) ) { // No-sql database $ cacher -> setDefaultCacher ( 'RedisCache' ) ; } }
Set current default cache class
Set current default cache class