We are using the Cache Builder to build the instance of cache and we do not want to pass any expiration time period and wanted to handle the clean up later in the code programmatically . Code snippet as shown below:
CacheBuilder.newBuilder()
.build(new CacheLoader<K, V>() {
@Override
public V load(K key) {
return loadingFunction.load(key);
}
});
We wanted to understand that what would be the default time period of expiration if we don't set it explicitly. Will it be for all the time till we programmatically cleanUp the entries or any fixed default number?