/// <summary> /// Performs the actual insert of a key / value pair and the options that apply to /// this cache item. /// </summary> /// <param name="key"> /// The key of the item being inserted. /// </param> /// <param name="value"> /// The non-null value to be stored. /// </param> /// <param name="options"> /// The options of this cache item. /// </param> public void Add(string key, object value, CacheOptions options) { this._memoryCache.Add(key, value, new CacheItemPolicy { AbsoluteExpiration = options.AbsoluteExpiration, SlidingExpiration = options.SlidingExpiration, Priority = ConvertPriority(options.Priority), }); }
/// <summary> /// Does nothing, the value will not be stored anywhere. /// </summary> /// <param name="key"> /// The key used for identifying the value, not used. /// </param> /// <param name="value"> /// The value to be stored, not used. /// </param> /// <param name="options"> /// The options used to store the value, not used. /// </param> public void Add(string key, object value, CacheOptions options) { }