예제 #1
0
        /// <inheritdoc />
        public override void Remove(object key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            log.Debug("removing item {0}", key);

            if (Get(key.ToString()) != null)
            {
                cache.Remove(region, key.ToString());
            }
        }
예제 #2
0
        public void Remove(object key)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            if (log.IsDebugEnabled)
            {
                log.DebugFormat("removing item {0}", key);
            }

            if (Get(key.ToString()) != null)
            {
                cache.Remove(region, key.ToString());
            }
        }