def default_cache
      if defined?(Rails) && Rails.respond_to?(:cache)
        Rails.cache
      else
        ::ActiveSupport::Cache::MemoryStore.new
      end
    end
def default_cache
      if defined?(Rails) && Rails.respond_to?(:cache)
        Rails.cache
      else
        ::ActiveSupport::Cache::MemoryStore.new
      end
    end
Returns the default cache store, either Rails.cache or an instance
 of ActiveSupport::Cache::MemoryStore.

 @example Get the default cache store
   config.default_cache

 @return [Cache] The default cache store instance.