Esempio n. 1
0
        public RedisCacheServer(ICommon common)
        {
            int    database         = 0;
            string connectionString = common.GetConfigurationSetting(Directory.GetCurrentDirectory(), "autofac.json", "modules:3:properties:ConnectionString");

            _connection = ConnectionMultiplexer.Connect(connectionString);
            _cache      = _connection.GetDatabase(database);
        }