# Functions
NewFromConfig returns redis *redis.Client instance from yaml config file
given config file contents:
redis:
primary:
username: <username>
password: "<password>"
host: mredis.aws.com
port: 6379
schema: 0
conn:
max-idle: 20
max-lifetime: 10m
timeout: 5m
max-open: 100
then we can call using :
v := viper.New()
..
NewRedisConnection returns new redis client based on db Options.