import "github.com/qq1060656096/go-redis-manager"
manager := NewConnectionManager()
manager.Add("test1", &redis.Options{
Addr: "localhost:6379",
Password: "123456", // no password set
DB: 1, // use default DB
})
manager.Add("test2", &redis.Options{
Addr: "localhost:6379",
Password: "123456", // no password set
DB: 2, // use default DB
})
redisClient := manager.Get("test1").GetRedisClient().Set("test1.key1", "test1.value1", 0).Err()
-
Notifications
You must be signed in to change notification settings - Fork 0
go-redis-driver
License
qq1060656096/go-redis-manager
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
go-redis-driver
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published