Module: ZohoInvoiceResource::CachedResourcePatch::ClassMethods

Defined in:
lib/zoho_invoice_resource/cached_resource_patch.rb

Instance Method Summary collapse

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, options = nil)
  cached_resource.cache.delete(key, options)
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, options = nil)
  cached_resource.cache.exist?(key, options)
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, options = nil)
  object = cached_resource.cache.read(key, options)
  # dupしないといけないのかも
  object && cached_resource.logger.info("#{CachedResource::Configuration::LOGGER_PREFIX} READ #{key}")
  object
end