Package com.inrupt.client.guava
Class GuavaCacheBuilder
java.lang.Object
com.inrupt.client.guava.GuavaCacheBuilder
- All Implemented Interfaces:
 CacheBuilderService
A 
CacheBuilderService using a Guava-based cache.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T,U> ClientCache<T, U> Build a cache.static <T,U> ClientCache<T, U> ofCache(com.google.common.cache.Cache<T, U> cache) Create aClientCachedirectly from an existing GuavaCache. 
- 
Constructor Details
- 
GuavaCacheBuilder
public GuavaCacheBuilder() 
 - 
 - 
Method Details
- 
build
Description copied from interface:CacheBuilderServiceBuild a cache.- Specified by:
 buildin interfaceCacheBuilderService- Type Parameters:
 T- the key typeU- the value type- Parameters:
 maximumSize- the maximum cache sizeduration- the duration after which items should expire from the cache- Returns:
 - the cache
 
 - 
ofCache
Create aClientCachedirectly from an existing GuavaCache.- Type Parameters:
 T- the key typeU- the value type- Parameters:
 cache- the pre-built cache- Returns:
 - a cache suitable for use in the Inrupt Client libraries
 
 
 -