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 >:
Collaboration diagram for fiftyone.caching.PutCache< K, V >:
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 > | |
| 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
-
key the key for the item value the value to add
Implemented in fiftyone.caching.LruPutCache< K, V >.
