module ZohoInvoiceResource::CachedResourcePatch::ClassMethods

Public Instance Methods

cache_delete(key, options = nil) click to toggle source
# 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) click to toggle source
# 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) click to toggle source

override

# 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