Class DSLExtensionsKt
-
- All Implemented Interfaces:
public final class DSLExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <K extends Any, V extends Any> CacheConfig<K, V>
cacheConfig(Function1<CacheConfig.Builder<K, V>, Unit> configure)
Creates a cache configuration using a DSL-style builder. final static <K extends Any, V extends Any> Cache<K, V>
createCacheWithProfile(ProfileName profileName, Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache using the JCacheXBuilder with profile name for type safety. final static <K extends Any, V extends Any> Cache<K, V>
createCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache using the JCacheXBuilder with the DEFAULT profile. final static <K extends Any, V extends Any> Cache<K, V>
createSmartCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache with smart defaults based on workload characteristics. final static <K extends Any, V extends Any> Cache<K, V>
createReadHeavyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for read-heavy workloads (80%+ reads). final static <K extends Any, V extends Any> Cache<K, V>
createWriteHeavyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for write-heavy workloads (50%+ writes). final static <K extends Any, V extends Any> Cache<K, V>
createMemoryEfficientCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for memory-constrained environments. final static <K extends Any, V extends Any> Cache<K, V>
createHighPerformanceCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for maximum performance and throughput. final static <K extends Any, V extends Any> Cache<K, V>
createSessionCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for user session storage. final static <K extends Any, V extends Any> Cache<K, V>
createApiCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for API response caching. final static <K extends Any, V extends Any> Cache<K, V>
createComputeCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for expensive computation results. final static <K extends Any, V extends Any> Cache<K, V>
createMachineLearningCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for machine learning workloads. final static <K extends Any, V extends Any> Cache<K, V>
createUltraLowLatencyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for ultra-low latency requirements. final static <K extends Any, V extends Any> Cache<K, V>
createHardwareOptimizedCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for hardware-specific features. final static <K extends Any, V extends Any> Cache<K, V>
createUnifiedCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
-
-
Method Detail
-
cacheConfig
final static <K extends Any, V extends Any> CacheConfig<K, V> cacheConfig(Function1<CacheConfig.Builder<K, V>, Unit> configure)
Creates a cache configuration using a DSL-style builder.
-
createCacheWithProfile
final static <K extends Any, V extends Any> Cache<K, V> createCacheWithProfile(ProfileName profileName, Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache using the JCacheXBuilder with profile name for type safety.
-
createCache
final static <K extends Any, V extends Any> Cache<K, V> createCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache using the JCacheXBuilder with the DEFAULT profile.
-
createSmartCache
final static <K extends Any, V extends Any> Cache<K, V> createSmartCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache with smart defaults based on workload characteristics.
-
createReadHeavyCache
final static <K extends Any, V extends Any> Cache<K, V> createReadHeavyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for read-heavy workloads (80%+ reads).
-
createWriteHeavyCache
final static <K extends Any, V extends Any> Cache<K, V> createWriteHeavyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for write-heavy workloads (50%+ writes).
-
createMemoryEfficientCache
final static <K extends Any, V extends Any> Cache<K, V> createMemoryEfficientCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for memory-constrained environments.
-
createHighPerformanceCache
final static <K extends Any, V extends Any> Cache<K, V> createHighPerformanceCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for maximum performance and throughput.
-
createSessionCache
final static <K extends Any, V extends Any> Cache<K, V> createSessionCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for user session storage.
-
createApiCache
final static <K extends Any, V extends Any> Cache<K, V> createApiCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for API response caching.
-
createComputeCache
final static <K extends Any, V extends Any> Cache<K, V> createComputeCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for expensive computation results.
-
createMachineLearningCache
final static <K extends Any, V extends Any> Cache<K, V> createMachineLearningCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for machine learning workloads.
-
createUltraLowLatencyCache
final static <K extends Any, V extends Any> Cache<K, V> createUltraLowLatencyCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for ultra-low latency requirements.
-
createHardwareOptimizedCache
final static <K extends Any, V extends Any> Cache<K, V> createHardwareOptimizedCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
Creates a cache optimized for hardware-specific features.
-
createUnifiedCache
final static <K extends Any, V extends Any> Cache<K, V> createUnifiedCache(Function1<JCacheXBuilder<K, V>, Unit> configure)
-
-
-
-