コード例 #1
0
 public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer)
 {
     throw null;
 }
コード例 #2
0
ファイル: UtilRepository.cs プロジェクト: sunxiaoshuang/Cat
 public UtilRepository(CatDbContext context, StackExchange.Redis.IConnectionMultiplexer connection) : base(context)
 {
     _database = connection.GetDatabase();
 }
コード例 #3
0
 /// <summary>
 /// Initialize
 /// </summary>
 /// <param name="redisConfiguration"></param>
 /// <param name="keyPrefix"></param>
 public void Initialize(string redisConfiguration, string keyPrefix)
 {
     _keyPrefix  = keyPrefix;
     _connection = StackExchange.Redis.ConnectionMultiplexer.Connect(redisConfiguration);
 }