public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder PersistKeysToStackExchangeRedis(this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, StackExchange.Redis.IConnectionMultiplexer connectionMultiplexer) { throw null; }
public UtilRepository(CatDbContext context, StackExchange.Redis.IConnectionMultiplexer connection) : base(context) { _database = connection.GetDatabase(); }
/// <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); }