コード例 #1
0
 public RedisTagManager(ICacheItemFactory cacheItemFactory)
 {
     _cacheItemFactory = cacheItemFactory;
 }
コード例 #2
0
ファイル: Cache.cs プロジェクト: patchandthat/MemoryCacheT
 /// <summary>
 /// Initializes a new instance of the Cache&lt;TKey,TValue&gt;.
 /// </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&lt;TKey&gt; 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)
 {
 }
コード例 #3
0
ファイル: Cache.cs プロジェクト: patchandthat/MemoryCacheT
 /// <summary>
 /// Initializes a new instance of the Cache&lt;TKey,TValue&gt;.
 /// </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)
 {
 }
コード例 #4
0
 public RedisCacheItemProvider(ISerializationProvider serializer, ICacheItemFactory cacheItemFactory)
 {
     _serializer       = serializer;
     _cacheItemFactory = cacheItemFactory;
 }