Пример #1
0
 public object Get(ApiGetRequest request) => cache.Get(CacheKeyCreator.Create(baseUrl, request));
Пример #2
0
 public ApiRequestCacheHelper Set(ApiGetRequest request, String value)
 {
     cache.Set(CacheKeyCreator.Create(baseUrl, request), value, policy);
     return(this);
 }
Пример #3
0
 public bool HasCache(ApiGetRequest request) => cache.Contains(CacheKeyCreator.Create(baseUrl, request));