/// <summary> /// 缓存数据集合 /// </summary> /// <param name="key">关键字</param> /// <returns>缓存数据集合</returns> public LeftArray <valueType> this[keyType key] { get { memberCacheType node = getTarget(key); if (node != null) { GetTask task = new GetTask(this, node, key); sqlTable.AddQueue(task); return(task.Wait()); } return(default(LeftArray <valueType>)); } }
/// <summary> /// 缓存数据 /// </summary> /// <param name="key">关键字</param> /// <returns>缓存数据</returns> public cacheValueType this[keyType key] { get { memberCacheType node = getTarget(key); if (node != null) { GetTask task = new GetTask(this, node, key); sqlTable.AddQueue(task); return(task.Wait()); } return(null); } }