public void Init() { if (!_isInit) { _dic = new Dictionary <string, InstrumentNode>(SettingCache.LuceneDictCount); try { _cache = SerizlizerUtils <List <InstrumentNode> > .DeserializeLastCache(_bufferName); } catch { } if (_cache == null) { _cache = new List <InstrumentNode>(SettingCache.LuceneDictCount); } PublishCache(); _isInit = true; } }
/// <summary> /// 序列化加载初始化 /// </summary> public virtual void SerializeInit() { _cache = SerizlizerUtils<T>.DeserializeLastCache(BufferName); }