I'm trying to create a simple (non-loading) cache with Caffeine.
Cache<String, MyObject> countsCache =
CacheBuilder.newBuilder().build();
This fails to compile, with the Error reported:
Error:(42, 31) java: incompatible types:
no instance(s) of type variable(s) K1,V1 exist so that org.elasticsearch.common.cache.Cache<K1,V1> conforms to com.github.benmanes.caffeine.cache.Cache<java.lang.String,com.foo.bar.MyObject>
Any suggestions would be greatly appreciated.