コード例 #1
0
ファイル: class.silk_cache.php プロジェクト: JackSpratt/silk
 public static function get_instance($type = 'function')
 {
     if (self::$instances == null) {
         self::$instances = array();
     }
     if (empty(self::$instances[$type])) {
         self::$instances[$type] = new SilkCache($type);
     }
     return self::$instances[$type];
 }