add prefix so keys stop clashing

This commit is contained in:
Sam Saffron 2013-02-08 22:09:09 +11:00
parent d3f911cc4c
commit edaa7643c5
1 changed files with 4 additions and 4 deletions

View File

@ -68,19 +68,19 @@ class MessageBus::ReliablePubSub
end end
def backlog_key(channel) def backlog_key(channel)
"__mb_backlog_#{channel}" "__mb_backlog_n_#{channel}"
end end
def backlog_id_key(channel) def backlog_id_key(channel)
"__mb_backlog_id_#{channel}" "__mb_backlog_id_n_#{channel}"
end end
def global_id_key def global_id_key
"__mb_global_id" "__mb_global_id_n"
end end
def global_backlog_key def global_backlog_key
"__mb_global_backlog" "__mb_global_backlog_n"
end end
# use with extreme care, will nuke all of the data # use with extreme care, will nuke all of the data