# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/ Cache = Class.new do def method_missing(method, ...) super if !respond_to_missing? method ActiveSupport::Deprecation.warn("Method 'Cache.#{method}' is deprecated. 'Rails.cache.#{method}' instead.") Rails.cache.send(method, ...) end def respond_to_missing?(...) Rails.cache.respond_to?(...) end end.new