Skip to content

Commit

Permalink
#freeze is no longer relevant.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Mar 11, 2017
1 parent af2d75c commit 10d6ec9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,6 @@ class CacheEverythingForever
@cache_all_the_things = Concurrent::Map.new
end

# Because you supply your own implementation of #freeze, Rack::Freeze won't touch this middleware.
def freeze
return self if frozen?

@app.freeze

super
end

def call(env)
# Use the thread-safe `Concurrent::Map` to fetch the value or store it if it doesn't exist already.
@cache_all_the_things.fetch_or_store(env[Rack::PATH_INFO]) do
Expand Down

0 comments on commit 10d6ec9

Please sign in to comment.