public RedisCache(AppConfig appConfig, ISerializableService serializableService, IConnectionMultiplexerAccessor connectionMultiplexerAccessor) { _appConfig = appConfig; _serializableService = serializableService; _connectionMultiplexerAccessor = connectionMultiplexerAccessor; _database = _connectionMultiplexerAccessor.ConnectionMultiplexer.GetDatabase(); }
public RedisCacheTests() { _appConfig = new AppConfig { RedisCacheKeyPrefix = "Ixq.Soft::", RedisCacheConnectionString = "localhost:6379" }; _serializableService = new BinarySerializableService(); _cma = new ConnectionMultiplexerAccessor(_appConfig); }