Uses of Class
cloud.opencode.base.cache.CacheDecorators.ChainBuilder
Packages that use CacheDecorators.ChainBuilder
-
Uses of CacheDecorators.ChainBuilder in cloud.opencode.base.cache
Methods in cloud.opencode.base.cache that return CacheDecorators.ChainBuilderModifier and TypeMethodDescriptionstatic <K,V> CacheDecorators.ChainBuilder <K, V> Start a decorator chain for the given cache 为给定的缓存开始装饰器链static <K,V> CacheDecorators.ChainBuilder <K, V> Start a decorator chain for the given cache 为给定的缓存开始装饰器链CacheDecorators.ChainBuilder.with(UnaryOperator<Cache<K, V>> decorator) Apply a custom decorator 应用自定义装饰器CacheDecorators.ChainBuilder.withCopyOnRead()Add copy-on-read behavior with default copier (serialization) 添加读时复制行为,使用默认复制器(序列化)CacheDecorators.ChainBuilder.withCopyOnRead(UnaryOperator<V> copier) Add copy-on-read with custom copier 添加读时复制并自定义复制器CacheDecorators.ChainBuilder.withCopyOnReadConfigured(UnaryOperator<CopyOnReadCache.Builder<K, V>> configurer) Add copy-on-read with custom configuration 添加读时复制并自定义配置CacheDecorators.ChainBuilder.withProtection()Add protection (BloomFilter + SingleFlight) with default settings 添加保护(布隆过滤器 + SingleFlight)使用默认设置CacheDecorators.ChainBuilder.withProtection(UnaryOperator<ProtectedCache.Builder<K, V>> configurer) Add protection with custom configuration 添加保护并自定义配置CacheDecorators.ChainBuilder.withRefreshAhead(RefreshAheadPolicy<K, V> policy, Function<? super K, ? extends V> loader) Add refresh-ahead behavior 添加提前刷新行为CacheDecorators.ChainBuilder.withRefreshAhead(UnaryOperator<RefreshAheadCache.Builder<K, V>> configurer) Add refresh-ahead with custom configuration 添加提前刷新并自定义配置CacheDecorators.ChainBuilder.withTimeout(Duration timeout) Add operation timeout 添加操作超时CacheDecorators.ChainBuilder.withTimeout(UnaryOperator<TimeoutCache.Builder<K, V>> configurer) Add timeout with custom configuration 添加超时并自定义配置