Skip to content

gozix/goredis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GoZix GoRedis

License Documentation

Release Build Status Go Report Card Code Coverage

The bundle provide a GoRedis integration to GoZix application.

Installation

go get github.com/gozix/goredis/v4

Dependencies

Configuration example

{
  "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

Documentation

You can find documentation on pkg.go.dev and read source code if needed.

Questions

If you have any questions, feel free to create an issue.