Sha256: ef30cc3d39f75ce147661cb3a136138c89e988738d84d5a7b50e898d28096dbe

Contents?: true

Size: 187 Bytes

Versions: 3

Compression:

Stored size: 187 Bytes

Contents

module RestrictCache
  class CacheSweeper
    def initialize(app)
      @app = app
    end

    def call(env)
      @app.call(env)
    ensure
      RestrictCache.clear
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
restrict_cache-0.1.2 lib/restrict_cache/cache_sweeper.rb
restrict_cache-0.1.1 lib/restrict_cache/cache_sweeper.rb
restrict_cache-0.1.0 lib/restrict_cache/cache_sweeper.rb