Ejemplo n.º 1
0
        /// <inheritdoc />
        public override void Put(object key, object value)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key", "null key not allowed");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value", "null value not allowed");
            }

            log.Debug("setting value for item {0}", key);

            cache.Put(region, key.ToString(), value, null, null);
        }
Ejemplo n.º 2
0
        public void Put(object key, object value)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key", "null key not allowed");
            }
            if (value == null)
            {
                throw new ArgumentNullException("value", "null value not allowed");
            }

            if (log.IsDebugEnabled)
            {
                log.DebugFormat("setting value for item {0}", key);
            }

            cache.Put(region, key.ToString(), value, null, null);
        }