Such as the following implementation:
public static CacheBuilder<K, V> newBuilder() {
return new CacheBuilder<K, V>();
}
The current implementation:
public static CacheBuilder<Object, Object> newBuilder() {
return new CacheBuilder<Object, Object>();
}
To facilitate reuse (I think):
CacheBuilder<Object, Object> builder = CacheBuilder
.newBuilder()
.expireAfterAccess(10, TimeUnit.SECONDS);
Cache<Integer, String> cache1 = builder.build();
Cache<Double, Serializable> cache2 = builder.build();
Yes, for reuse. Thanks for @cardamon 馃挴
Duplicate of #738
@lowasser Thanks, I remember to search 'CacheBuilder newBuilder' in 'Pull requests', but not in 'Issues'. So not found, I'm so sorry.
Most helpful comment
To facilitate reuse (I think):