\r\n

51Degrees Pipeline Java  4.4

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:

[legend]

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.

Parameters
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
Returns
a new cache instance

Implemented in fiftyone.caching.PutCacheBuilder.