51Degrees Pipeline for Java

fiftyone.caching.PutCache< K, V > Interface Template Reference

Detailed Description

A cache that supports a thread safe put method for inserting to cache.

By contrast, for example, LruLoadingCache is a loading cache, it automatically updates itself by being provided with a data loader.

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

[legend]

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

[legend]

Public Member Functions

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

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

get (K key)
 Retrieves the value for key requested.

Member Function Documentation

◆ put()

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

Add an item to the cache.

Parameters
keythe key for the item
valuethe value to add

Implemented in fiftyone.caching.LruPutCache< K, V >.