Package com.facebook.buck.rules.keys
Interface RuleKeyCacheScope<V>
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
EventPostingRuleKeyCacheScope
public interface RuleKeyCacheScope<V> extends AutoCloseable
A class managing access to aRuleKeyCache
for the duration of a build. Accessing a cache via aRuleKeyCacheScope
inside of a try-resource block allows both pre-build and post-build operations to always be run before and after using the cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
TrackedRuleKeyCache<V>
getCache()
-
-
-
Method Detail
-
getCache
TrackedRuleKeyCache<V> getCache()
- Returns:
- the scoped
RuleKeyCache
.
-
close
void close()
- Specified by:
close
in interfaceAutoCloseable
-
-