zhaopeizhi / redisgo

connector for GO and Redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##REDISGO

usage:

import "redis"

var cli redis.Clinet

cli.Remote = "127.0.0.1:6379"
cli.Psw = "lucky" // optional
cli.Db = 13 // optional

if err := cli.Connect(); err != nil {
    // error handling
}

if err := cli.Set([]byte("foo"), []byte("bar")); err != nil {
    // error handling
}

Good Luck! :)

About

connector for GO and Redis


Languages

Language:Go 100.0%