Aller au contenu principal
Version: 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>