mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cachable: make #overwrite_cache! private
This commit is contained in:
parent
cefd3273cc
commit
e9a05d896a
@ -7,13 +7,15 @@ module Cachable
|
|||||||
@cache ||= T.let({}, T.nilable(T::Hash[T.untyped, T.untyped]))
|
@cache ||= T.let({}, T.nilable(T::Hash[T.untyped, T.untyped]))
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { params(hash: T.nilable(T::Hash[T.untyped, T.untyped])).void }
|
|
||||||
def overwrite_cache!(hash)
|
|
||||||
@cache = hash
|
|
||||||
end
|
|
||||||
|
|
||||||
sig { void }
|
sig { void }
|
||||||
def clear_cache
|
def clear_cache
|
||||||
cache.clear
|
cache.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
sig { params(hash: T::Hash[T.untyped, T.untyped]).void }
|
||||||
|
def overwrite_cache!(hash)
|
||||||
|
@cache = hash
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user