Sage.CacheWrapper.Remove C# (CSharp) Method

Remove() public method

Removes the specified item from the cache.
public Remove ( string key ) : object
key string An identifier for the cache item to remove.
return object
        public object Remove(string key)
        {
            if (cache != null)
                return cache.Get(key);

            if (dictionary.ContainsKey(key))
            {
                object result = dictionary[key];
                dictionary.Remove(key);
                return result;
            }

            return null;
        }