Skip to content

Commit

Permalink
Add docs from gofiber/storage@468d82d
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 13, 2023
1 parent 093b12a commit c68385f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/storage/rueidis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ store := rueidis.New(rueidis.Config{
TLSConfig: nil,
})

// Initialize using Rueidis URL
store := rueidis.New(rueidis.Config{
URL: "redis://localhost:6379",
})

// Initialize Rueidis Cluster Client
store := rueidis.New(rueidis.Config{
InitAddress: []string{":6379", ":6380"},
Expand Down Expand Up @@ -105,6 +110,12 @@ type Config struct {
// Optional. Default is ""
ClientName string

// URL standard format Redis URL. If this is set all other config options, InitAddress, Username, Password, ClientName, and SelectDB have no effect.
//
// Example: redis://<user>:<pass>@localhost:6379/<db>
// Optional. Default is ""
URL string

// SelectDB to be selected after connecting to the server.
//
// Optional. Default is 0
Expand Down

0 comments on commit c68385f

Please sign in to comment.