Method: Rack::Cache::EntityStore::Disk#open
- Defined in:
- lib/rack/cache/entitystore.rb
#open(key) ⇒ Object
Open the entity body and return an IO object. The IO object’s each method is overridden to read 8K chunks instead of lines.
116 117 118 119 120 |
# File 'lib/rack/cache/entitystore.rb', line 116 def open(key) Body.open(body_path(key), 'rb') rescue Errno::ENOENT nil end |