예제 #1
0
 /// <summary>
 /// 获取数据
 /// </summary>
 /// <param name="queue"></param>
 /// <param name="key">关键字</param>
 /// <param name="dictionaryKey">字典关键字</param>
 internal GetTask(QueueDictionary <valueType, modelType, counterKeyType, keyType, dictionaryKeyType> queue, keyType key, dictionaryKeyType dictionaryKey)
 {
     this.queue         = queue;
     this.key           = key;
     this.dictionaryKey = dictionaryKey;
     wait.Set(0);
 }
예제 #2
0
 /// <summary>
 /// 获取缓存数据
 /// </summary>
 /// <param name="queue"></param>
 /// <param name="key">关键字</param>
 /// <param name="dictionaryKey">字典关键字</param>
 /// <param name="nullValue">失败返回值</param>
 internal GetByKeyAwaiter(QueueDictionary <valueType, modelType, counterKeyType, keyType, dictionaryKeyType> queue, keyType key, dictionaryKeyType dictionaryKey, valueType nullValue)
 {
     this.queue         = queue;
     this.key           = key;
     this.dictionaryKey = dictionaryKey;
     this.nullValue     = nullValue;
 }