Class OptimizedCache<K,​V>

  • Type Parameters:
    K - the type of keys
    V - the type of values
    All Implemented Interfaces:
    Cache<K,​V>

    public class OptimizedCache<K,​V>
    extends OptimizedCacheBase<K,​V>
    High-performance cache implementation with Caffeine-inspired optimizations.

    This implementation provides:

    • Lock-Free Reads: Uses atomic operations and access buffers
    • Window TinyLFU: Advanced eviction with frequency-based admission control
    • Batched Operations: Reduces contention through batch processing
    • Adaptive Sizing: Automatically adjusts to workload patterns
    Since:
    1.0.0
    • Constructor Detail

      • OptimizedCache

        public OptimizedCache​(CacheConfig<K,​V> config)
        Creates a new optimized cache with the specified configuration.
        Parameters:
        config - the cache configuration
    • Method Detail

      • getDetailedMetrics

        public String getDetailedMetrics()
        Returns detailed performance metrics for the optimized cache.