コード例 #1
0
 public RedisApplication(string connection)
 {
     RedisMultiplexer = ConnectionMultiplexer.Connect(connection);
     Database         = RedisMultiplexer.GetDatabase();
 }
コード例 #2
0
 /// <summary>
 /// RedisCache
 /// </summary>
 public RedisCacheContext(IOptions <RedisOptions> options)
 {
     RedisMultiplexer = ConnectionMultiplexer.Connect(options.Value.ConnectionString);
     RedisDatabase    = RedisMultiplexer.GetDatabase(options.Value.DataBaseIndex);
 }