コード例 #1
0
ファイル: CacheTest.php プロジェクト: cmem-dev/lodestone
 protected function _after()
 {
     Cache::$_instance = null;
 }
コード例 #2
0
ファイル: Cache.php プロジェクト: cmem-dev/lodestone
 /**
  * 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);
 }