public static Dictionary <string, string> GetStats(this ICachedServiceClient client)
 {
     return(new Dictionary <string, string>
     {
         { "CacheCount", client.CacheCount + "" },
         { "CacheHits", client.CacheHits + "" },
         { "NotModifiedHits", client.NotModifiedHits + "" },
         { "ErrorFallbackHits", client.ErrorFallbackHits + "" },
         { "CachesAdded", client.CachesAdded + "" },
         { "CachesRemoved", client.CachesRemoved + "" },
     });
 }
 public static void ClearCache(this ICachedServiceClient client)
 {
     client.SetCache(new ConcurrentDictionary <string, HttpCacheEntry>());
 }