The bundle provide a GoRedis integration to GoZix application.
go get github.com/gozix/goredis/v5
{
"redis": {
"default": {
"host": "127.0.0.1",
"port": "6379",
"db": 0,
"username": "someuser",
"password": "somepassword",
"max_retiries": 2,
"read_timeout": "2s",
"write_timeout": "2s",
"idle_timeout": "1m"
}
}
}
"username" field is optional and ignored if empty "password" field is optional and ignored if empty "db" field is optional. Default is 0
You can find documentation on pkg.go.dev and read source code if needed.
If you have any questions, feel free to create an issue.