Categorygithub.com/Golang-Tools/redishelper/v2
package
2.1.0
Repository: https://github.com/golang-tools/redishelper.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

redishelper

github.com/go-redis/redis/v8的帮助程序

主要包括如下组件

原生结构

  • redisproxy,redis客户端的代理对象,用于代理github.com/go-redis/redis/v8UniversalClient
  • scaner,scan遍历全局keys的遍历器对象
  • pubsubhelper,pubsub模式的客户端,满足pchelper定义的生产者接口ProducerInterface和消费者接口ConsumerInterface
  • queuehelper,redis双端队列的客户端,满足pchelper定义的生产者接口ProducerInterface和消费者接口ConsumerInterface
  • streamhelper,redis的stream数据结构的客户端,满足pchelper定义的生产者接口ProducerInterface和消费者接口ConsumerInterface,同时提供stream结构的管理对象
  • incrlimiter,使用redis的string数据结构的incr原子自增特性构造的限流器,满足limiterhelper定义的限流器接口LimiterInterface
  • lock,使用redis构造的分布式锁结构
  • cache,利用redis构造的分布式缓存,可以搭配lock模块中定义的LockInterface接口的实现和limiterhelper定义的限流器接口LimiterInterface的实现增强功能
  • keycounter,利用redis的string数据结构的incr原子自增特性构造的分布式计数器,满足模块counterhelper定义的接口CounterInterface
  • hashcounter,利用redis的hashmap数据结构的incr原子自增特性构造的分布式计数器,满足模块counterhelper定义的接口CounterInterface
  • ranker,利用redis的有序结合数据结构构造的分布式排序器
  • hypercount,利用redis的hypercount构造的分布式大规模计数器,适用于统计日活等操作.
  • bitmapset,利用redis的bitmap构造的分布式集合,适合用于去重操作,签到操作等
  • keyspace_notifications,管理keyspace_notifications的设置,监听keyspace_notifications事件

扩展组件

  • exthelper,redis客户端的扩展管理对象
  • exthelper/cellhelper,redis扩展redis-cell的帮助模块
  • exthelper/cellhelper/celllimiter,使用redis的string数据结构的incr原子自增特性构造的限流器,满足limiterhelper定义的限流器接口LimiterInterface
  • exthelper/redisbloomhelper,使用RedisBloom的帮助程序.