class IknowCache

Constants

VERSION

Public Class Methods

merge_options(parent_options, options) click to toggle source
# File lib/iknow_cache.rb, line 242
def self.merge_options(parent_options, options)
  if parent_options.blank?
    options
  elsif options.blank?
    parent_options
  else
    parent_options.merge(options)
  end
end
register_group(name, key_name, default_options: nil, static_version: 1) { |group| ... } click to toggle source
# File lib/iknow_cache.rb, line 4
def self.register_group(name, key_name, default_options: nil, static_version: 1)
  group = CacheGroup.new(nil, name, key_name, default_options, static_version)
  yield group if block_given?
  group
end