original_string: public function getCache($name)
      {
          if (isset($this->_caches[$name])) {
              return $this->_caches[$name];
          }
          if (isset($this->_optionTemplates[$name])) {
              if ($name == self::PAGECACHE
                  && (!isset($this->_optionTemplates[$name]['backend']['options']['tag_cache'])
                  || !$this->_optionTemplates[$name]['backend']['options']['tag_cache'] instanceof Zend_Cache_Core)
              ) {
                  $this->_optionTemplates[$name]['backend']['options']['tag_cache']
                      = $this->getCache(self::PAGETAGCACHE);
              }
  
              $this->_caches[$name] = Zend_Cache::factory(
                  $this->_optionTemplates[$name]['frontend']['name'],
                  $this->_optionTemplates[$name]['backend']['name'],
                  isset($this->_optionTemplates[$name]['frontend']['options']) ? $this->_optionTemplates[$name]['frontend']['options'] : array(),
                  isset($this->_optionTemplates[$name]['backend']['options']) ? $this->_optionTemplates[$name]['backend']['options'] : array(),
                  isset($this->_optionTemplates[$name]['frontend']['customFrontendNaming']) ? $this->_optionTemplates[$name]['frontend']['customFrontendNaming'] : false,
                  isset($this->_optionTemplates[$name]['backend']['customBackendNaming']) ? $this->_optionTemplates[$name]['backend']['customBackendNaming'] : false,
                  isset($this->_optionTemplates[$name]['frontendBackendAutoload']) ? $this->_optionTemplates[$name]['frontendBackendAutoload'] : false
              );
  
              return $this->_caches[$name];
          }
      }
code: public function getCache($name)
      {
          if (isset($this->_caches[$name])) {
              return $this->_caches[$name];
          }
          if (isset($this->_optionTemplates[$name])) {
              if ($name == self::PAGECACHE
                  && (!isset($this->_optionTemplates[$name]['backend']['options']['tag_cache'])
                  || !$this->_optionTemplates[$name]['backend']['options']['tag_cache'] instanceof Zend_Cache_Core)
              ) {
                  $this->_optionTemplates[$name]['backend']['options']['tag_cache']
                      = $this->getCache(self::PAGETAGCACHE);
              }
  
              $this->_caches[$name] = Zend_Cache::factory(
                  $this->_optionTemplates[$name]['frontend']['name'],
                  $this->_optionTemplates[$name]['backend']['name'],
                  isset($this->_optionTemplates[$name]['frontend']['options']) ? $this->_optionTemplates[$name]['frontend']['options'] : array(),
                  isset($this->_optionTemplates[$name]['backend']['options']) ? $this->_optionTemplates[$name]['backend']['options'] : array(),
                  isset($this->_optionTemplates[$name]['frontend']['customFrontendNaming']) ? $this->_optionTemplates[$name]['frontend']['customFrontendNaming'] : false,
                  isset($this->_optionTemplates[$name]['backend']['customBackendNaming']) ? $this->_optionTemplates[$name]['backend']['customBackendNaming'] : false,
                  isset($this->_optionTemplates[$name]['frontendBackendAutoload']) ? $this->_optionTemplates[$name]['frontendBackendAutoload'] : false
              );
  
              return $this->_caches[$name];
          }
      }
code_tokens: public function getCache ( $ name ) { if ( isset ( $ this -> _caches [ $ name ] ) ) { return $ this -> _caches [ $ name ] ; } if ( isset ( $ this -> _optionTemplates [ $ name ] ) ) { if ( $ name == self :: PAGECACHE && ( ! isset ( $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'options' ] [ 'tag_cache' ] ) || ! $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'options' ] [ 'tag_cache' ] instanceof Zend_Cache_Core ) ) { $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'options' ] [ 'tag_cache' ] = $ this -> getCache ( self :: PAGETAGCACHE ) ; } $ this -> _caches [ $ name ] = Zend_Cache :: factory ( $ this -> _optionTemplates [ $ name ] [ 'frontend' ] [ 'name' ] , $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'name' ] , isset ( $ this -> _optionTemplates [ $ name ] [ 'frontend' ] [ 'options' ] ) ? $ this -> _optionTemplates [ $ name ] [ 'frontend' ] [ 'options' ] : array ( ) , isset ( $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'options' ] ) ? $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'options' ] : array ( ) , isset ( $ this -> _optionTemplates [ $ name ] [ 'frontend' ] [ 'customFrontendNaming' ] ) ? $ this -> _optionTemplates [ $ name ] [ 'frontend' ] [ 'customFrontendNaming' ] : false , isset ( $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'customBackendNaming' ] ) ? $ this -> _optionTemplates [ $ name ] [ 'backend' ] [ 'customBackendNaming' ] : false , isset ( $ this -> _optionTemplates [ $ name ] [ 'frontendBackendAutoload' ] ) ? $ this -> _optionTemplates [ $ name ] [ 'frontendBackendAutoload' ] : false ) ; return $ this -> _caches [ $ name ] ; } }
docstring: Fetch the named cache object, or instantiate and return a cache object
  using a named configuration template
  
  @param  string $name
  @return Zend_Cache_Core
docstring_tokens: Fetch the named cache object or instantiate and return a cache object using a named configuration template