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