Documentation ¶
Overview ¶
Redis Stream 是 Redis 5.0 版本新增加的数据结构。
Index ¶
Constants ¶
View Source
const ErrorTimeOut = "timeout"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BPopPushRsp ¶
type Handle ¶
type Handle struct { Key keyStorage Str strStorage Set setStorage List listStorage Stream streamStorage Lock Lock PubSub pubsubStorage }
func (*Handle) SetTimeOut ¶
type Lock ¶
type Lock struct { }
func (*Lock) LockWithTimeout ¶
LockWithTimeout 设置分布式 lockTime 锁设置的ttl时间 ; waitTime 等待时间
func (*Lock) ReleaseLock ¶
ReleaseLock 释放锁 id LockWithTimeout 返回的记录,用于比较存储中的一致性
type StreamData ¶
Click to show internal directories.
Click to hide internal directories.