class ActiveSupport::Cache::Store
def handle_invalid_expires_in(message)
def handle_invalid_expires_in(message) error = ArgumentError.new(message) if ActiveSupport::Cache::Store.raise_on_invalid_cache_expiration_time raise error else ActiveSupport.error_reporter&.report(error, handled: true, severity: :warning) logger.error("#{error.class}: #{error.message}") if logger end end