◆ put()
void fiftyone.caching.PutCache< K, V >.put | ( | K | key, |
V | value | ||
) |
Add an item to the cache.
- Parameters
-
- key - the key for the item
- value - the value to add
Implemented in fiftyone.caching.LruPutCache< K, V >.
\r\n
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.
void | put (K key, V value)
Add an item to the cache. More...
|
Public Member Functions inherited from fiftyone.caching.Cache< K, V > | |
V | get (K key)
Retrieves the value for key requested. More...
|
void fiftyone.caching.PutCache< K, V >.put | ( | K | key, |
V | value | ||
) |
Add an item to the cache.
Implemented in fiftyone.caching.LruPutCache< K, V >.