public interface RuleKeyCache<V>
Modifier and Type | Method and Description |
---|---|
V |
get(AddsToRuleKey appendable,
java.util.function.Function<? super AddsToRuleKey,RuleKeyResult<V>> create) |
V |
get(BuildEngineAction action) |
V |
get(BuildEngineAction action,
java.util.function.Function<? super BuildEngineAction,RuleKeyResult<V>> create) |
void |
invalidateAll()
Invalidate everything in the cache.
|
void |
invalidateAllExceptFilesystems(com.google.common.collect.ImmutableSet<ProjectFilesystem> filesystems)
Invalidate all inputs *not* from the given
ProjectFilesystem s and their transitive
dependents. |
void |
invalidateFilesystem(ProjectFilesystem filesystem)
Invalidate all inputs from a given
ProjectFilesystem and their transitive dependents. |
void |
invalidateInputs(Iterable<com.facebook.buck.rules.keys.RuleKeyInput> inputs)
Invalidate the given inputs and all their transitive dependents.
|
@Nullable V get(BuildEngineAction action)
action
, or null if it is not cached..V get(BuildEngineAction action, java.util.function.Function<? super BuildEngineAction,RuleKeyResult<V>> create)
rule
, either serving it form cache or by
running the given function.V get(AddsToRuleKey appendable, java.util.function.Function<? super AddsToRuleKey,RuleKeyResult<V>> create)
appendable
, either serving it form cache or by
running the given function.void invalidateInputs(Iterable<com.facebook.buck.rules.keys.RuleKeyInput> inputs)
void invalidateAllExceptFilesystems(com.google.common.collect.ImmutableSet<ProjectFilesystem> filesystems)
ProjectFilesystem
s and their transitive
dependents.void invalidateFilesystem(ProjectFilesystem filesystem)
ProjectFilesystem
and their transitive dependents.void invalidateAll()