Beispiel #1
0
        public bool Remove(string key)
        {
            if (!Loaded)
            {
                return(false);
            }

            bool removed = true;

            try
            {
                cache.Remove(key);
            }
            catch (Exception ex)
            {
                OnError(ex);
                removed = false;
                FileBasedTraceProvider.Current.WriteTrace(TraceSeverity.Exception, "Could not remove item from cache due to exception: {0}", ex.Message);
            }
            return(removed);
        }