only apply maximum cache size to guava cach if it is greater than zero