class ContentCaching::Adapter::Fs
Public Instance Methods
delete(document_path)
click to toggle source
# File lib/content_caching/adapters/fs.rb, line 14 def delete document_path File.delete url(document_path) end
store(document_path, content)
click to toggle source
# File lib/content_caching/adapters/fs.rb, line 5 def store document_path, content content.rewind if content.respond_to?(:rewind) File.write url(document_path), content.respond_to?(:read) ? content.read : content end
url(document_url)
click to toggle source
# File lib/content_caching/adapters/fs.rb, line 10 def url document_url document_url end