RX is a Golang helper library for working with Redis as part of the Golia series. It simplifies the process of creating and managing Redis connections with the ability to use custom or default configurations.
go get -u github.com/goliajp/rx/v2
You can create a Redis connection with the default configuration or by providing a custom configuration. The returned *redis.Client from Open() can be used with the go-redis library for further operations.
r := rx.NewRedis(nil) // nil for default configuration
cli := r.Open() // cli is a *redis.Client from go-redis
cfg := &rx.RedisConfig{
Host: "root",
Port: 6379,
Password: "",
Db: 0,
}
r := rx.NewRedis(cfg)
cli := r.Open()
We welcome contributions to RX! Feel free to submit issues, feature requests, or pull requests on GitHub.
This project is licensed under the MIT License - see the LICENSE file for details.