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]; }