Package org.jdbi.v3.cache.noop
Class NoopCacheBuilder
java.lang.Object
org.jdbi.v3.cache.noop.NoopCacheBuilder
- All Implemented Interfaces:
- JdbiCacheBuilder
Cache builder for the no op cache.
- 
Method SummaryModifier and TypeMethodDescription<K,V> JdbiCache <K, V> build()Creates an cache instance from the values in the builder.<K,V> JdbiCache <K, V> buildWithLoader(JdbiCacheLoader<K, V> cacheLoader) Creates an cache instance from the values in the builder and a supplied cache loader.maxSize(int maxSize) Sets an upper boundary to the cache size.
- 
Method Details- 
buildDescription copied from interface:JdbiCacheBuilderCreates an cache instance from the values in the builder.- Specified by:
- buildin interface- JdbiCacheBuilder
- Returns:
- A cache instance.
 
- 
buildWithLoaderDescription copied from interface:JdbiCacheBuilderCreates an cache instance from the values in the builder and a supplied cache loader.- Specified by:
- buildWithLoaderin interface- JdbiCacheBuilder
- Parameters:
- cacheLoader- A- JdbiCacheLoaderinstance that is used to create a new value if no value is currently stored in the cache.
 
- 
maxSizeDescription copied from interface:JdbiCacheBuilderSets an upper boundary to the cache size.- Specified by:
- maxSizein interface- JdbiCacheBuilder
- Parameters:
- maxSize- Sets the maximum size of the cache. If the value is zero or negative, the cache is unbounded.
- Returns:
- The instance of the builder itself.
 
 
-