Class: RequestLocals::Cache
- Inherits:
-
Concurrent::Map
- Object
- Concurrent::Map
- RequestLocals::Cache
- Defined in:
- lib/request_locals.rb
Overview
Internal: Cache that supports nested access by using a monitor instead of a mutex.
Instance Method Summary collapse
-
#initialize(options = nil) ⇒ Cache
constructor
A new instance of Cache.
Constructor Details
#initialize(options = nil) ⇒ Cache
Returns a new instance of Cache.
36 37 38 39 |
# File 'lib/request_locals.rb', line 36 def initialize( = nil) super() @write_lock = Monitor.new end |