add AdapterRedis for package gcache

This commit is contained in:
John Guo
2021-11-27 01:10:00 +08:00
parent e5c3444ea6
commit 35cf228d83
7 changed files with 615 additions and 7 deletions

View File

@ -20,7 +20,7 @@ import (
// Config is redis configuration.
type Config struct {
Address string `json:"address"` // It supports single and cluster redis server. Multiple addresses joined with char ','.
Address string `json:"address"` // It supports single and cluster redis server. Multiple addresses joined with char ','. Eg: 192.168.1.1:6379, 192.168.1.2:6379.
Db int `json:"db"` // Redis db.
Pass string `json:"pass"` // Password for AUTH.
MinIdle int `json:"minIdle"` // Minimum number of connections allowed to be idle (default is 0)