Module: ZohoInvoiceResource::CachedResourcePatch::ClassMethods
- Defined in:
- lib/zoho_invoice_resource/cached_resource_patch.rb
Instance Method Summary collapse
- #cache_delete(key, options = nil) ⇒ Object
- #cache_exist?(key, options = nil) ⇒ Boolean
-
#cache_read(key, options = nil) ⇒ Object
override.
Instance Method Details
#cache_delete(key, options = nil) ⇒ Object
14 15 16 |
# File 'lib/zoho_invoice_resource/cached_resource_patch.rb', line 14 def cache_delete(key, = nil) cached_resource.cache.delete(key, ) end |
#cache_exist?(key, options = nil) ⇒ Boolean
18 19 20 |
# File 'lib/zoho_invoice_resource/cached_resource_patch.rb', line 18 def cache_exist?(key, = nil) cached_resource.cache.exist?(key, ) end |
#cache_read(key, options = nil) ⇒ Object
override
7 8 9 10 11 12 |
# File 'lib/zoho_invoice_resource/cached_resource_patch.rb', line 7 def cache_read(key, = nil) object = cached_resource.cache.read(key, ) # dupしないといけないのかも object && cached_resource.logger.info("#{CachedResource::Configuration::LOGGER_PREFIX} READ #{key}") object end |