method

rescue_error_with

rails latest stable - Class: ActiveSupport::Cache::MemCacheStore
rescue_error_with(fallback)
private

No documentation available.

# File activesupport/lib/active_support/cache/mem_cache_store.rb, line 335
        def rescue_error_with(fallback)
          yield
        rescue Dalli::DalliError => error
          logger.error("DalliError (#{error}): #{error.message}") if logger
          ActiveSupport.error_reporter&.report(
            error,
            severity: :warning,
            source: "mem_cache_store.active_support",
          )
          fallback
        end