51Degrees Pipeline Java  4.1Newer Version 4.2

51Degrees Pipeline for Java

fiftyone.caching.CacheBuilder Interface Reference

Detailed Description

Builder interface used to build caches.

The builder is type agnostic, and will build a cache with the types provided.

Inheritance diagram for fiftyone.caching.CacheBuilder:


Public Member Functions

< K, V > Cache< K, V >  build (Cache< K, V > c, int cacheSize)
Build a new instance of the cache. More...

Member Function Documentation

◆ build()

<K, V> Cache<K, V> fiftyone.caching.CacheBuilder.build ( Cache< K, V >   c,
int   cacheSize  

Build a new instance of the cache.

c - a cache to get the key and value types from
cacheSize - size of the cache
<K> - type of key to store in the cache
<V> - type of value to store in the cache
a new cache instance

Implemented in fiftyone.caching.PutCacheBuilder.