aiscrm / redisgo Goto Github PK
View Code? Open in Web Editor NEW基于github.com/gomodule/redigo,对常用的redis用法进行了封装,让你更方便的使用。
基于github.com/gomodule/redigo,对常用的redis用法进行了封装,让你更方便的使用。
需要在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)))
}
closePool的时候直接退出程序是不是太暴力了?
写了一个接口,把接收到的参数存入redis, 多次调用接口,key不相同,set (key ,value,30),数据库一直只有一个key,key不相同也会把之前的key替换掉
我开了100个协程 但是连了..1万多个连接 我手动关闭 都没成功
conn := c.redisPool.Get()
conn.Close()
没有效果~
类似于 github.com/go-redis/redis 包的模糊匹配, result, err := cli.Keys(ctx, user.UserName+"*").Result()
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.