Discover Packages
github.com/cloudzenith/DouTok/backend/gopkgs
components
redisx
package
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Oct 7, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
GetClient used to get a redis client instance
keys is used to declare get which one
Index 0 of keys is the store key
Index 1 of keys is the db key
If keys is empty, it will return the default client
func IsHealth() (err error )
type Config struct {
Dsn string `json:"dsn" yaml:"dsn"`
Password string `json:"password" yaml:"password"`
DBList map[string ]int `json:"db_list" yaml:"db_list"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.