跳到主要内容
版本:Next

NodeRedisWatcher

Hierarchy

Index

Constructors

constructor

  • new NodeRedisWatcher(options: { pubClient?: Redis; subClient: Redis; subscribeKeyName?: string }): NodeRedisWatcher

Methods

getDefaultSubscribeKeyName

  • getDefaultSubscribeKeyName(): string

publishData

  • publishData(): Promise<void>

setUpdateCallback

  • setUpdateCallback(callback: () => void): void

subscribeData

  • subscribeData(callback: any): Promise<void>

update

  • update(): Promise<boolean>