◆ setConcurrency()
Builder fiftyone.caching.LruPutCache< K, V >.Builder.setConcurrency | ( | int | concurrency | ) |
Set the expected number of concurrent requests to the cache.
This will determine the number linked lists used in the cache structure. For details see description of multiple linked lists in LruCacheBase.
- Parameters
-
- concurrency - the expected number of concurrent requests to the cache.
- Returns
- this builder
◆ setUpdateExisting()
Builder fiftyone.caching.LruPutCache< K, V >.Builder.setUpdateExisting ( boolean update ) Set whether or not an existing item in the cache should be updated with the value given to the put method.
By default this is false, meaning that if put is called for a key which already exists in the cache, the existing value is kept and there is no result to the put method
- Parameters
-
- update - true if existing items should be updated by the put method
- Returns
- this builder
Implements fiftyone.caching.PutCacheBuilder.