public RedisTagManager(ICacheItemFactory cacheItemFactory) { _cacheItemFactory = cacheItemFactory; }
/// <summary> /// Initializes a new instance of the Cache<TKey,TValue>. /// </summary> /// <param name="timerInterval">Interval for checking expired cache items.</param> /// <param name="cacheItemFactory">The ICacheItemFactory implementation to use when creating new cache items, or null to use the default.</param> /// <param name="keyEqualityComparer">The System.Collections.Generic.IEqualityComparer<TKey> implementation to use when comparing keys, or null to use the default.</param> public Cache(TimeSpan timerInterval, ICacheItemFactory cacheItemFactory, IEqualityComparer <TKey> keyEqualityComparer) : this(new TimerAdapter(), timerInterval, cacheItemFactory.CreateInstance, keyEqualityComparer) { }
/// <summary> /// Initializes a new instance of the Cache<TKey,TValue>. /// </summary> /// <param name="timerInterval">Interval for checking expired cache items.</param> /// <param name="cacheItemFactory">The ICacheItemFactory implementation to use when creating new cache items, or null to use the default.</param> public Cache(TimeSpan timerInterval, ICacheItemFactory cacheItemFactory) : this(new TimerAdapter(), timerInterval, cacheItemFactory.CreateInstance) { }
public RedisCacheItemProvider(ISerializationProvider serializer, ICacheItemFactory cacheItemFactory) { _serializer = serializer; _cacheItemFactory = cacheItemFactory; }