module Maidservice
Constants
- VERSION
Public Class Methods
clear(full_path)
click to toggle source
Publishing to redis Playing with fire here
# File lib/maidservice.rb, line 13 def clear(full_path) redis.publish('expire_page.action_controller', full_path) end
configuration()
click to toggle source
# File lib/maidservice/configuration.rb, line 9 def configuration @configuration ||= Maidservice::Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/maidservice/configuration.rb, line 5 def configure yield configuration end
redis()
click to toggle source
# File lib/maidservice.rb, line 7 def redis Maidservice.configuration.redis end
subscribe()
click to toggle source
Delegate the active support notifications
# File lib/maidservice.rb, line 18 def subscribe ActiveSupport::Notifications.subscribe('expire_page.action_controller') do |*args| event = ActiveSupport::Notifications::Event.new *args Maidservice.clear(event.payload[:path]) end end