Categorygithub.com/beiping96/rd
modulepackage
0.0.0-20200928080143-ef063fc247b7
Repository: https://github.com/beiping96/rd.git
Documentation: pkg.go.dev

# README

RD

Redis (Cluster) Driver

Build Status GoDoc Go Report Card

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

Instance Example

# Packages

No description provided by the author

# Functions

New redis client with config.

# Structs

Config desc redis client method.

# Interfaces

RD declare redis client method.