コード例 #1
0
 private async Task SetProductsCache()
 {
     if (!_objectCache.Contains(_productCacheKey))
     {
         _objectCache.SetItem(_productCacheKey, await _eatClient.GetProductsAsync());
     }
 }
コード例 #2
0
 public bool Contains <T, T2, T3>() where T : BaseDataEntity <T2, T3>
 {
     return(_objectCache.Contains(typeof(T).Name));
 }
コード例 #3
0
 public bool Contains(TIndex key)
 {
     return(_index.Contains(key));
 }