Exemple #1
0
 public RedisCache(Maybe <RedisDatabase> database, RedisSettings settings)
 {
     _database  = database.HasValue ? database.Value.Database : null;
     _settings  = settings;
     _enabled   = _settings.Enabled;
     _available = _database != null && _settings.Enabled;
 }
 public RedisDatabaseFactory(RedisSettings redisSettings)
 {
     _redisSettings = redisSettings;
     TryConnect();
 }