Class: Jekyll::Embed::Cache
- Inherits:
-
Cache
- Object
- Cache
- Jekyll::Embed::Cache
- Defined in:
- lib/jekyll/embed/cache.rb
Overview
Jekyll cache that behaves like ActiveSupport::Cache
Instance Method Summary collapse
Instance Method Details
#read(key) ⇒ Object
11 12 13 14 15 |
# File 'lib/jekyll/embed/cache.rb', line 11 def read(key) self[key] rescue StandardError nil end |
#write(key, value) ⇒ Object
7 8 9 |
# File 'lib/jekyll/embed/cache.rb', line 7 def write(key, value) self[key] = value end |