modulepackage
0.0.0-20200928080143-ef063fc247b7
Repository: https://github.com/beiping96/rd.git
Documentation: pkg.go.dev
# README
RD
Redis (Cluster) Driver
Simple Usage
package main
import (
"github.com/beiping96/rd"
)
func main() {
cfg := rd.Config{
IsCluster: true,
Address: "127.0.0.1:6379",
}
cli, err := rd.NewClient(cfg)
if err != nil {
// handle err
}
defer cli.Close()
_, err := cli.DoString("GET", "not_exist_key")
if err == cli.ErrNil() {
// key not exist
} else if err != nil {
// handle err
}
}
With Instance
# Packages
No description provided by the author
# Functions
New redis client with config.
# Interfaces
RD declare redis client method.