/// <summary>
 /// Constructor.
 /// </summary>
 public AbpRedisCache(string name, IAbpRedisConnectionProvider redisConnectionProvider, AbpRedisCacheConfig config)
     : base(name)
 {
     _config = config;
     var connectionString = redisConnectionProvider.GetConnectionString(_config.ConnectionStringKey);
     _connectionMultiplexer = redisConnectionProvider.GetConnection(connectionString);
 }
Beispiel #2
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public AbpRedisCache(string name, IAbpRedisConnectionProvider redisConnectionProvider)
            : base(name)
        {
            var connectionString = redisConnectionProvider.GetConnectionString(ConnectionStringKey);

            _connectionMultiplexer = redisConnectionProvider.GetConnection(connectionString);
        }
Beispiel #3
0
        public RedisCache(string name, IAbpRedisConnectionProvider redisConnectionProvider, AbpRedisCacheConfig config)
            : base(name)
        {
            _config = config;
            var connectionString = redisConnectionProvider.GetConnectionString(_config.ConnectionStringKey);

            _connectionMultiplexer = redisConnectionProvider.GetConnection(connectionString);
        }
Beispiel #4
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public AbpRedis(
            IAbpRedisConnectionProvider redisConnectionProvider,
            IAbpRedisModuleConfiguration configuration)
        {
            _configuration = configuration;
            var connectionString = redisConnectionProvider.GetConnectionString(_configuration.ConnectionNameOrString);

            _connectionMultiplexer = redisConnectionProvider.GetConnection(connectionString);
            Name = string.Empty;
        }
 /// <summary>
 /// Constructor.
 /// </summary>
 public AbpRedisCache(string name, IAbpRedisConnectionProvider redisConnectionProvider)
     : base(name)
 {
     var connectionString = redisConnectionProvider.GetConnectionString(ConnectionStringKey);
     _connectionMultiplexer = redisConnectionProvider.GetConnection(connectionString);
 }