예제 #1
0
        public RedisCache(AppConfig appConfig, ISerializableService serializableService,
                          IConnectionMultiplexerAccessor connectionMultiplexerAccessor)
        {
            _appConfig                     = appConfig;
            _serializableService           = serializableService;
            _connectionMultiplexerAccessor = connectionMultiplexerAccessor;

            _database = _connectionMultiplexerAccessor.ConnectionMultiplexer.GetDatabase();
        }
예제 #2
0
        public RedisCacheTests()
        {
            _appConfig = new AppConfig
            {
                RedisCacheKeyPrefix        = "Ixq.Soft::",
                RedisCacheConnectionString = "localhost:6379"
            };

            _serializableService = new BinarySerializableService();
            _cma = new ConnectionMultiplexerAccessor(_appConfig);
        }