rockxsj / yaredis

一个类似phpredis的go的redis客户端

Home Page:http://blog.whoknow.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

##yaredis的意思是yet another redis

###使用方法:

package main

import (
	"fmt"
	"yaredis"
    "time"
)

func main() {
    conn := yaredis.ConnTimeout("127.0.0.1", "6379", time.Millisecond, time.Millisecond, time.Millisecond)
    conn.Lrange("mylisttrue", 0, 3)
    conn.Get("abc")
    conn.Close()
    conn = yaredis.Conn("127.0.0.1", "6379")
    status, err := conn.Command("ping")
    status, err = conn.Get("haha")
    fmt.Println(status, err)
}

About

一个类似phpredis的go的redis客户端

http://blog.whoknow.me


Languages

Language:Go 100.0%