redis-kesypace-event
# Set it up. | |
$redis.config(:set, 'notify-keyspace-events', 'zE') | |
# Subscriber | |
$redis.psubscribe('__keyevent@*__:zrem') do |on| | |
on.pmessage do |pattern, channel, message| | |
puts "==== AFTER zrem EVENT =====" | |
# Available things: | |
puts "pattern: #{pattern}" | |
puts "channel: #{channel}" | |
puts "message: #{message}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment