node.js - Trouble with subscribing to keyspace notifications -



node.js - Trouble with subscribing to keyspace notifications -

i have list in redis managed bull. i'd monitor length of list different process. i'm new redis while think i've found "correct" way this, i'm running issues.

from little research leaned redis has keyspace notifications 2.8.0 onwards , sounded appropriate.

before go farther want confirm have keyspace events enabled:

127.0.0.1:6379> config notify-keyspace-events 1) "notify-keyspace-events" 2) "ake"

also, according info, think i'm on database 0:

# keyspace db0:keys=315,expires=0,avg_ttl=0

with out of way: i'm having problem subscribing channels want. module creates , manages list under key: 'bull:test queue:wait', based on documentation keyspace notifications understanding should doing next hear force , pop events.

subscribe "__keyspace:0__:bull:test queue:wait rpush" subscribe "__keyspace:0__:bull:test queue:wait lpush" subscribe "__keyspace:0__:bull:test queue:wait rpop" subscribe "__keyspace:0__:bull:test queue:wait lpop"

if run 1. in 1 process, , in process do:

rpush "bull:test queue:wait" 222

then subscribe doesn't message. weirdly, if utilize psubscribe , hear "__keyspace:0__:bull:test queue:wait*" does fire appropriately. i'm not looking events, pushes , pops. isn't quite i'm after.

if tell me i'm doing wrong much appreciated.

thanks time.

i misunderstanding docs.

the channel __keyspace:0__:bull:test queue:wait , message rpush, lpush, etc. alternatively, channel be: __keyspace:0__:rpush , message bull:test queue:wait.

thank jan-erik rediger helped me out on give-and-take board.

node.js redis node-redis

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -