|
|
|
@ -30,8 +30,8 @@ type Store struct { |
|
|
|
MaxOpenConns int64 `yaml:"MaxOpenConns" default:"500"` |
|
|
|
MaxIdleConns int64 `yaml:"MaxIdleConns" default:"500"` |
|
|
|
ConnMaxLifeTime int64 `yaml:"ConnMaxLifeTime" default:"5"` |
|
|
|
RedisExpire int64 `yaml:"RedisExpire" default:"604800"` // Trans data will expire in 7 days
|
|
|
|
RedisPrefix string `yaml:"RedisPrefix" default:"{}"` // Redis storage prefix. stored to only one slot in cluster
|
|
|
|
DataExpire int64 `yaml:"DataExpire" default:"604800"` // Trans data will expire in 7 days. only for redis/boltdb.
|
|
|
|
RedisPrefix string `yaml:"RedisPrefix" default:"{}"` // Redis storage prefix. store data to only one slot in cluster
|
|
|
|
} |
|
|
|
|
|
|
|
func (s *Store) IsDB() bool { |
|
|
|
|