public RedisCacheStore(IRedisConnectionWrapper connectionWrapper, RedisSettings redisSettings) { this.database = connectionWrapper.Database(redisSettings.DefaultDb); this.server = connectionWrapper.FirstServer(); this.readFlag = redisSettings.PreferSlaveForRead ? CommandFlags.PreferSlave : CommandFlags.PreferMaster; }