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