Skip to content
/ rx Public

RX is a Golang helper library for working with Redis as part of the Golia series.

License

Notifications You must be signed in to change notification settings

goliajp/rx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RX - Golang Redis Helper Library

Go Report Card GoDoc


简体中文 日本語

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.

Installation

go get -u github.com/goliajp/rx/v2

Usage

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.

Using Default Configuration

r := rx.NewRedis(nil) // nil for default configuration
cli := r.Open() // cli is a *redis.Client from go-redis

Custom Connection Configuration

cfg := &rx.RedisConfig{
    Host:     "root",
    Port:     6379,
    Password: "",
    Db:       0,
}
r := rx.NewRedis(cfg)
cli := r.Open()

Contributing

We welcome contributions to RX! Feel free to submit issues, feature requests, or pull requests on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

RX is a Golang helper library for working with Redis as part of the Golia series.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages