original_string: public function setCacheTemplate($name, $options)
      {
          if ($options instanceof Zend_Config) {
              $options = $options->toArray();
          } elseif (!is_array($options)) {
              // require_once 'Zend/Cache/Exception.php';
              throw new Zend_Cache_Exception('Options passed must be in'
                  . ' an associative array or instance of Zend_Config');
          }
          $this->_optionTemplates[$name] = $options;
          return $this;
      }
code: public function setCacheTemplate($name, $options)
      {
          if ($options instanceof Zend_Config) {
              $options = $options->toArray();
          } elseif (!is_array($options)) {
              // require_once 'Zend/Cache/Exception.php';
              throw new Zend_Cache_Exception('Options passed must be in'
                  . ' an associative array or instance of Zend_Config');
          }
          $this->_optionTemplates[$name] = $options;
          return $this;
      }
code_tokens: public function setCacheTemplate ( $ name , $ options ) { if ( $ options instanceof Zend_Config ) { $ options = $ options -> toArray ( ) ; } elseif ( ! is_array ( $ options ) ) { // require_once 'Zend/Cache/Exception.php'; throw new Zend_Cache_Exception ( 'Options passed must be in' . ' an associative array or instance of Zend_Config' ) ; } $ this -> _optionTemplates [ $ name ] = $ options ; return $ this ; }
docstring: Set a named configuration template from which a cache object can later
  be lazy loaded
  
  @param  string $name
  @param  array $options
  @return Zend_Cache_Manager
docstring_tokens: Set a named configuration template from which a cache object can later be lazy loaded