private static bool IsDefaultValue(CacheItem item) { return(item == null || item.Value == null || string.IsNullOrEmpty(Convert.ToString(item.Value))); }
/// <summary> /// This call puts an item into a cache. /// </summary> /// <param name="key"> The key to store the item under in the cache. </param> /// <param name="item"> The item’s data </param> /// <remarks> /// http://dev.iron.io/cache/reference/api/#put_an_item_into_a_cache /// </remarks> public async Task <bool> Put(string key, CacheItem item) { return(await RestClient.Put <ResponseMsg>(_client.Config, CacheItemEndPoint(key), item).HasExpectedMessage("Stored.")); }