Toggle navigation
Home
com.google.common.cache.LoadingCache to com.google.common.cache.Cache
No. of Instances - 1
No. of Commits - 1
No. of Projects - {'pac4j'}
Hierarchy/Composition: R_SUPER_T
Primitive Info: -
NameSpace: External -> External
Mapping:
Add or Remove Method invocation
CacheBuilder.newBuilder().maximumSize(cacheSize).expireAfterWrite(timeout,timeUnit).build(this.cacheLoader)
to
CacheBuilder.newBuilder().maximumSize(cacheSize).expireAfterWrite(timeout,timeUnit).build()
builder.recordStats().build(new CacheLoader<C,Optional<P>>(){ @Override public Optional<P> load( C key) throws Exception { cacheMisses.mark(); final Optional<P> result=underlying.authenticate(key); if (!result.isPresent()) { throw new AuthenticationException("Failed to load security context into cache"); } return result; } } )
to
builder.recordStats().build()
Rename Method invocation
get
to
getIfPresent