Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "1.0.1"
Version is the current version of the package.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RedisHost string RedisPort int RedisUsername string RedisPassword string RedisDB int // Redis *redis.Client // MaxLen 最大消息数量,如果大于这个数量,旧消息会被删除,0表示不管 MaxLen int64 // Approx 配合 MaxLen 使用的,表示几乎精确的删除消息,也就是不完全精确,由于stream内部是流,所以设置此参数xadd会更加高效 Approx bool }
Config is the config for a mq.
Click to show internal directories.
Click to hide internal directories.