class CacheJSON::Base::Cache
Attributes
args[RW]
options[RW]
Public Class Methods
new(args: {}, options:)
click to toggle source
# File lib/cache_json/base.rb, line 45 def initialize(args: {}, options:) @args = args @options = options end
Public Instance Methods
adapter()
click to toggle source
# File lib/cache_json/base.rb, line 66 def adapter @adapter ||= CacheJSON::Adapters::Redis.new(args: args, options: options) end
cache_expiring_soon?()
click to toggle source
# File lib/cache_json/base.rb, line 62 def cache_expiring_soon? adapter.cache_expiring_soon? end
cached_results()
click to toggle source
# File lib/cache_json/base.rb, line 50 def cached_results adapter.cached_results end
cached_results=(results)
click to toggle source
# File lib/cache_json/base.rb, line 54 def cached_results=(results) adapter.cached_results = results end
clear_cache!()
click to toggle source
# File lib/cache_json/base.rb, line 58 def clear_cache! adapter.clear_cache! end