Detailed Description
Contains everything needed to build a cache.
Currently, a CacheBuilder and an integer size parameter.
- See also
- Specification
Public Member Functions | |
| CacheConfiguration (CacheBuilder builder, int size) | |
| Construct a new builder with the builder and size specified. | |
| CacheConfiguration (int size) | |
Construct a new builder using the LruPutCache with the size specified. | |
| CacheConfiguration () | |
Default constructor uses the LruPutCache with a size of 1000. | |
| CacheBuilder | getCacheBuilder () |
| Get the builder to use when building a cache. | |
| int | getSize () |
| Get the maximum size parameter to use when building a cache. | |
Static Public Attributes | |
| static final int | defaultSize = 1000 |
Constructor & Destructor Documentation
◆ CacheConfiguration() [1/2]
| fiftyone.pipeline.engines.configuration.CacheConfiguration.CacheConfiguration | ( | CacheBuilder | builder, |
| int | size ) |
Construct a new builder with the builder and size specified.
- Parameters
-
builder the builder to use to create caches size the maximum size of the cache
◆ CacheConfiguration() [2/2]
| fiftyone.pipeline.engines.configuration.CacheConfiguration.CacheConfiguration | ( | int | size | ) |
Construct a new builder using the LruPutCache with the size specified.
- Parameters
-
size maximum size of the cache
Member Function Documentation
◆ getCacheBuilder()
| CacheBuilder fiftyone.pipeline.engines.configuration.CacheConfiguration.getCacheBuilder | ( | ) |
Get the builder to use when building a cache.
- Returns
- cache builder
◆ getSize()
| int fiftyone.pipeline.engines.configuration.CacheConfiguration.getSize | ( | ) |
Get the maximum size parameter to use when building a cache.
- Returns
- cache size
