Method: Garner::Cache::ObjectIdentity.cache_metadata
- Defined in:
- lib/garner/cache/object_identity.rb
.cache_metadata(binding, context = {}) ⇒ Object
metadata for cached objects:
:etag - Unique hash of object content
:last_modified - Timestamp of last modification event
79 80 81 82 |
# File 'lib/garner/cache/object_identity.rb', line 79 def (binding, context = {}) key = key(binding, key_context(context)) Garner.config.cache.read((key)) end |