redisgo icon indicating copy to clipboard operation
redisgo copied to clipboard

基于github.com/gomodule/redigo,对常用的redis用法进行了封装,让你更方便的使用。

Results 6 redisgo issues
Sort by recently updated
recently updated
newest added

类似于 github.com/go-redis/redis 包的模糊匹配, result, err := cli.Keys(ctx, user.UserName+"*").Result()

需要在StartAndGC中添加以下代码 ` if opts.Prefix != "" { c.prefix = opts.Prefix } `

// LLen 获取列表的长度 func (c *Cacher) LLen(key string) (int64, error) { return Int64(c.Do("RPOP", c.getKey(key))) }

写了一个接口,把接收到的参数存入redis, 多次调用接口,key不相同,set (key ,value,30),数据库一直只有一个key,key不相同也会把之前的key替换掉

我开了100个协程 但是连了..1万多个连接 我手动关闭 都没成功 conn := c.redisPool.Get() conn.Close() 没有效果~

closePool的时候直接退出程序是不是太暴力了?