51Degrees Pipeline for Java

fiftyone.caching.LruPutCache< K, V > Class Template Reference

Detailed Description

Uses the LruCacheBase to implement the PutCache interface.

Parameters
<K>the type of key
<V>the type of value

Inheritance diagram for fiftyone.caching.LruPutCache< K, V >:

[legend]

Collaboration diagram for fiftyone.caching.LruPutCache< K, V >:

[legend]

Classes

class  Builder
 Implementation of CacheBuilder for LruPutCache caches. More...

Public Member Functions

void put (K key, V value)
 Add an item to the cache.

Public Member Functions inherited from fiftyone.caching.LruCacheBase< K, V >

long getCacheSize ()
 The number of items the cache lists should have capacity for.
long getCacheMisses ()
long getCacheRequests ()
double getPercentageMisses ()
V get (K key)
 Retrieves the value for key requested.
void resetCache ()
 Resets the 'stats' for the cache.
void close ()

Additional Inherited Members

Protected Member Functions inherited from fiftyone.caching.LruCacheBase< K, V >

CachedItem add (K key, V value)
void close (boolean closing)

Member Function Documentation

◆ put()

void fiftyone.caching.LruPutCache< K, V >.put ( K key,
V value )

Add an item to the cache.

Parameters
keythe key for the item
valuethe value to add

Implements fiftyone.caching.PutCache< K, V >.