adding support for RedisServer config while instantiating