コード例 #1
0
        /// <inheritdoc />
        public void Remove(object key)
        {
            if (key == null)
            {
                log.Error("null key passed to 'Remove'");
                throw new ArgumentNullException("key");
            }
            string cacheKey = GetCacheKey(key);

            log.Debug("removing item with key: {0}", cacheKey);
            system.Remove(cacheKey);
        }
コード例 #2
0
        /// <inheritdoc />
        public void Remove(object key)
        {
            if (key == null)
            {
                if (log.IsErrorEnabled)
                {
                    log.Error("null key passed to 'Remove'");
                }
                throw new ArgumentNullException("key");
            }
            string cacheKey = GetCacheKey(key);

            if (log.IsDebugEnabled)
            {
                log.Debug("removing item with key: " + cacheKey);
            }
            system.Remove(cacheKey);
        }