PSUBSCRIBE scoping

9 views
Skip to first unread message

smrt28

unread,
Dec 19, 2016, 10:05:34 AM12/19/16
to Redis DB
Hi,

last week we started using "PSUBSCRIBE" feature in our project. Later I was little surprised by its behavior. All the redis commands have the key space based on db number.
According to my findings and the docs at:


The channels are the only exception. Why? Is there a reason for this? IMO, it's not intuitive and unexpected. We are several developers. Each of us could have just used a different db number not to break each others environment and it always worked until we started witch channels. We have to introduce prefixes to avoid of the exception.


Jan-Erik Rediger

unread,
Dec 19, 2016, 10:16:21 AM12/19/16
to redi...@googlegroups.com
Redis' pubsub functionality is completely decoupled from the rest of its operations
(well, except for Keyspace Notifications: https://redis.io/topics/notifications).

That's why it does not follow the usual database separation (since it
does not even belong to any database)
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
> To post to this group, send email to redi...@googlegroups.com.
> Visit this group at https://groups.google.com/group/redis-db.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages