Package cloud.opencode.base.cache.spi
package cloud.opencode.base.cache.spi
-
ClassDescriptionAsyncCacheLoader<K,
V> Async Cache Loader SPI - Asynchronous cache value loader interface 异步缓存加载器 SPI - 异步缓存值加载接口CacheLoader<K,V> Cache Loader SPI - Synchronous cache value loader interface 缓存加载器 SPI - 同步缓存值加载接口Cache Serializer SPI - Cache value serialization interface 缓存序列化器 SPI - 缓存值序列化接口CacheWarmer<K,V> Cache Warmer SPI - Cache pre-warming interface 缓存预热器 SPI - 缓存预热接口EvictionPolicy<K,V> Eviction Policy SPI - Cache entry eviction strategy interface 淘汰策略 SPI - 缓存条目淘汰策略接口Weighted policy wrapper 加权策略包装器ExpiryPolicy<K,V> Expiry Policy SPI - Cache entry expiration strategy interface 过期策略 SPI - 缓存条目过期策略接口RefreshAheadPolicy<K,V> Refresh Ahead Policy - Proactive cache refresh strategy 提前刷新策略 - 主动缓存刷新策略Predicate interface for custom refresh logic 用于自定义刷新逻辑的断言接口RemovalListener<K,V> Removal Listener SPI - Cache entry removal callback interface 移除监听器 SPI - 缓存条目移除回调接口Retry Policy - Defines retry behavior for cache operations 重试策略 - 定义缓存操作的重试行为Custom retry policy implementation - wraps a delegate with custom exception filter 自定义重试策略实现 - 用自定义异常过滤器包装委托Exponential backoff implementationFixed delay implementationNo retry implementationStats Counter SPI - Cache statistics counter interface 统计计数器 SPI - 缓存统计计数器接口ValueWeigher<V>Value Weigher - Calculate weight of cache entries for memory-based eviction 值权重计算器 - 计算缓存条目权重用于基于内存的淘汰Entry weigher interface for key-value pairs 键值对的条目权重计算器接口