Exemple #1
0
 /// <summary>
 /// CTOR
 /// </summary>
 /// <param name="config">RedisConfiguration</param>
 public BlitzRedisClient(Models.RedisConfiguration config)
 {
     _config = config ?? throw new ArgumentNullException(nameof(config));
     redis   = ConnectionMultiplexer.Connect($"{_config.ConnectionString}");
 }
Exemple #2
0
 /// <summary>
 /// CTOR
 /// </summary>
 /// <param name="redisConfiguration"></param>
 /// <param name="keyPrefix"></param>
 public PacerAgent(Models.RedisConfiguration redisConfiguration, string keyPrefix)
 {
     _redisconfig = redisConfiguration;
     _client      = new BlitzRedisClient(_redisconfig);
     _keyprefix   = keyPrefix;
 }