Package io.root.patcher
Class DepCache
java.lang.Object
io.root.patcher.DepCache
SHA-1-keyed JSON file cache for Root.io API responses, stored under
.gradle/rootio-cache/.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DepCache
public DepCache()
-
-
Method Details
-
lookup
Look up the patched coordinates forcoordsfrom the local cache. On a cache miss (file absent or older thanttlHours), callsonMiss, writes the result to the cache, and returns it.- Parameters:
coords- Maven GAV string — "group:artifact:version"rootDir- project root directory (always useproject.getRootDir())ttlHours- cache TTL in hoursonMiss- called when the cache is cold or stale; may return null (no patch)- Returns:
- patched GAV string, or null if no patch exists
-