method

failsafe

rails latest stable - Class: ActiveSupport::Cache::RedisCacheStore
failsafe(method, returning: nil)
private

No documentation available.

# File activesupport/lib/active_support/cache/redis_cache_store.rb, line 478
        def failsafe(method, returning: nil)
          yield
        rescue ::Redis::BaseError => error
          @error_handler&.call(method: method, exception: error, returning: returning)
          returning
        end