createAutomaticBackend example



    /** * @param string $backend * @param array $backendOptions * * @return Zend_Cache_Backend */
    private function createBackend($backend$backendOptions)
    {
        if (strtolower($backend) === 'auto') {
            $backend = $this->createAutomaticBackend($backendOptions);
        } else {
            if (strtolower($backend) === 'apc') {
                $backend = 'apcu';
            }

            $backend = Zend_Cache::_makeBackend($backend$backendOptions);
        }

        return $backend;
    }

    
Home | Imprint | This part of the site doesn't use cookies.