class Sequent::Util::Web::ClearCache

Public Class Methods

new(app) click to toggle source
# File lib/sequent/util/web/clear_cache.rb, line 7
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/sequent/util/web/clear_cache.rb, line 11
def call(env)
  @app.call(env)
ensure
  Sequent.aggregate_repository.clear!
end