示例#1
0
文件: cache.php 项目: richmahn/Door43
 /**
  * Gets the singleton
  * @return door43Cache
  */
 static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new door43Cache();
     }
     return self::$instance;
 }
示例#2
0
 public function getCache()
 {
     require_once 'cache.php';
     if (empty(self::$cache)) {
         self::$cache = door43Cache::getInstance();
     }
     return self::$cache;
 }