Example #1
0
 protected function _after()
 {
     Cache::$_instance = null;
 }
Example #2
0
 /**
  * Create Cache object and set it to static variable.
  *
  * @return void
  */
 public static function forge()
 {
     $vendorDir = dirname(__FILE__);
     $options = array('cacheDir' => $vendorDir . Cache::CACHEDIR, 'lifeTime' => Cache::LIFETIME, 'automaticSerialization' => true);
     Cache::$_instance = new Cache_Lite($options);
 }