public bool Remove(string key) { try { var task = cache.InvalidateObject(key); task.Wait(); return(true); } catch (Exception) { return(false); } }