Skip to content

nybuxtsui/redis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

#简介 基于redigo,使用pipeline强化的redis驱动

#安装 go get github.com/nybuxtsui/redis

#特性

  1. 自动重连
  2. 主从切换
  3. 使用pipe发送指令

#使用

package main

import (
	"github.com/nybuxtsui/redis"
	"fmt"
)
func main() {
	var pool = redis.NewPool([]string{"127.0.0.1:6379"}, "")
	var result, err = pool.Exec("get", "__a")
	fmt.Println(result, err)
}

About

基于redigo的连接池

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages