brew/Library/Homebrew/extend/cachable.rb
apainintheneck f916f27d82 remove all references to JSON v3
The logic has now been removed in previous commits. This just
removes some references to the `HOMEBREW_INTERNAL_JSON_V3`
environment variable along with reverting the changes to the
`Cachable` class that were originally added in
bd72ec812c3ed656dfcf8e24f77df142a1fe9cc1.
2025-02-06 21:04:08 -08:00

15 lines
257 B
Ruby

# typed: strict
# frozen_string_literal: true
module Cachable
sig { returns(T::Hash[T.untyped, T.untyped]) }
def cache
@cache ||= T.let({}, T.nilable(T::Hash[T.untyped, T.untyped]))
end
sig { void }
def clear_cache
cache.clear
end
end