예제 #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));