Class CacheConfig
- java.lang.Object
-
- com.codedstreams.otterstreams.sql.config.CacheConfig
-
- All Implemented Interfaces:
Serializable
public class CacheConfig extends Object implements Serializable
Configuration for model and result caching in SQL inference.Controls the caching behavior for both loaded models and inference results to improve performance and reduce redundant computations.
- Since:
- 1.0.0
- Author:
- Nestor Martourez Abiangang A.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCacheConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CacheConfig.Builderbuilder()intgetMaxSize()intgetResultCacheMaxSize()longgetResultCacheTtlMs()longgetTtlMs()booleanisEnabled()booleanisResultCacheEnabled()StringtoString()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
-
getMaxSize
public int getMaxSize()
-
getTtlMs
public long getTtlMs()
-
isResultCacheEnabled
public boolean isResultCacheEnabled()
-
getResultCacheMaxSize
public int getResultCacheMaxSize()
-
getResultCacheTtlMs
public long getResultCacheTtlMs()
-
builder
public static CacheConfig.Builder builder()
-
-