예제 #1
0
 /**
  *
  * @param Oops_Config $config        	
  */
 public function __construct($config = null)
 {
     if (!$config instanceof Oops_Config) {
         $config = new Oops_Cache_Defconf();
     }
     $this->_config = $config;
     $this->_driver = Oops_Cache_Factory::getDriver($config->driver);
 }
예제 #2
0
 public function __construct($config)
 {
     $this->_driver = Oops_Cache_Factory::getDriver($config);
 }