public class PatchListCacheImpl implements PatchListCache {
private static final String FILE_NAME = "diff";
static final String INTRA_NAME = "diff_intraline";
public static Module module() {
return new CacheModule() {
@Override
protected void configure() {
persist(FILE_NAME, PatchListKey.class, PatchList.class)
.maximumWeight(10 << 20)
.loader(PatchListLoader.class)