Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RedisCacheManager"/> class.
 /// </summary>
 public RedisCacheManager()
 {
     _cache     = ConnectionInstance.GetDatabase();
     _protector = new MachineKeyDataProtector(new[] { typeof(RedisCacheManager).FullName });
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InMemoryCacheManager"/> class.
 /// </summary>
 public InMemoryCacheManager()
 {
     _protector = new MachineKeyDataProtector(new[] { typeof(InMemoryCacheManager).FullName });
 }