Uses of Interface
cloud.opencode.base.cache.Cache
Packages that use Cache
Package
Description
-
Uses of Cache in cloud.opencode.base.cache
Subinterfaces of Cache in cloud.opencode.base.cacheModifier and TypeInterfaceDescriptioninterfaceLoadingCache<K,V> Loading Cache Interface - Cache with automatic value loading 加载缓存接口 - 具有自动值加载功能的缓存Classes in cloud.opencode.base.cache that implement CacheModifier and TypeClassDescriptionfinal classCopyOnReadCache<K,V> Copy-on-Read Cache - Returns deep copies of cached values for thread safety 读时复制缓存 - 返回缓存值的深拷贝以保证线程安全classLayeredCache<K,V> LayeredCache - Multi-level cache implementation (L1/L2) 分层缓存 - 多级缓存实现 (L1/L2)classNullSafeCache<K,V> Null-Safe Cache - Cache that can store and distinguish null values 空值安全缓存 - 可以存储和区分 null 值的缓存final classProtectedCache<K,V> Protected Cache - Auto-integrates BloomFilter and SingleFlight protection 保护缓存 - 自动集成布隆过滤器和单次加载保护classReadThroughCache<K,V> Read-Through Cache - Automatic transparent loading from backend 读穿透缓存 - 从后端自动透明加载final classReferenceCache<K,V> Reference Cache - Memory-sensitive cache using weak/soft references 引用缓存 - 使用弱引用/软引用的内存敏感缓存final classRefreshAheadCache<K,V> Refresh Ahead Cache - Proactive cache refresh decorator 提前刷新缓存 - 主动缓存刷新装饰器final classTimeoutCache<K,V> Timeout Cache - Cache wrapper with operation timeout support 超时缓存 - 支持操作超时控制的缓存包装器classWriteBehindCache<K,V> Write-Behind Cache - Asynchronous batch persistence cache wrapper 写后缓存 - 异步批量持久化缓存包装器classWriteThroughCache<K,V> Write-Through Cache - Synchronous write to both cache and backend 写穿透缓存 - 同步写入缓存和后端存储Methods in cloud.opencode.base.cache that return CacheModifier and TypeMethodDescriptionCacheDecorators.ChainBuilder.build()Build the decorated cache 构建装饰后的缓存OpenCache.CacheBuilder.build()Build anonymous cache 构建匿名缓存Build cache with name 构建命名缓存<K,V> Cache <K, V> CacheManager.createCache(String name, CacheConfig<K, V> config) Create cache with configuration (always creates new) 创建带配置的缓存(总是创建新的)static <K,V> Cache <K, V> OpenCache.fifoCache(long maxSize) Create a simple FIFO cache with given maximum size 创建具有给定最大容量的简单 FIFO 缓存Get tenant-scoped cache view 获取租户作用域的缓存视图static <K,V> Cache <K, V> Create anonymous cache from specification string 从规范字符串创建匿名缓存static <K,V> Cache <K, V> Create cache from specification string 从规范字符串创建缓存TimeoutCache.getDelegate()Get the underlying cache 获取底层缓存static <K,V> Cache <K, V> OpenCache.getOrCreate(String name) Get or create named cache 获取或创建命名缓存static <K,V> Cache <K, V> OpenCache.getOrCreate(String name, Consumer<CacheConfig.Builder<K, V>> configurer) Get or create named cache with configuration 获取或创建带配置的命名缓存<K,V> Cache <K, V> CacheManager.getOrCreateCache(String name) Get or create cache with default configuration 获取或创建默认配置的缓存<K,V> Cache <K, V> CacheManager.getOrCreateCache(String name, Consumer<CacheConfig.Builder<K, V>> configurer) Get or create cache with configuration 获取或创建带配置的缓存LayeredCache.l1()Gets the L1 cache 获取L1缓存LayeredCache.l2()Gets the L2 cache 获取L2缓存static <K,V> Cache <K, V> OpenCache.lfuCache(long maxSize) Create a simple LFU cache with given maximum size 创建具有给定最大容量的简单 LFU 缓存static <K,V> Cache <K, V> OpenCache.lruCache(long maxSize) Create a simple LRU cache with given maximum size 创建具有给定最大容量的简单 LRU 缓存static <K,V> Cache <K, V> OpenCache.lruTtlCache(long maxSize, Duration duration) Create a cache with both LRU and TTL 创建同时具有 LRU 和 TTL 的缓存AsyncCache.sync()Get sync view of this async cache 获取同步视图static <K,V> Cache <K, V> Create a TTI-based cache with given size and idle expiration 创建具有给定容量和空闲过期时间的 TTI 缓存static <K,V> Cache <K, V> Create a TTL-based cache with given size and expiration 创建具有给定容量和过期时间的 TTL 缓存static <K,V> Cache <K, V> OpenCache.wTinyLfuCache(long maxSize) Create a high-performance W-TinyLFU cache 创建高性能 W-TinyLFU 缓存Methods in cloud.opencode.base.cache that return types with arguments of type CacheModifier and TypeMethodDescriptionGet existing cache by name 按名称获取已存在的缓存Get existing cache 获取已存在的缓存CacheManager.getCachesByPattern(String pattern) Get caches matching a name pattern (supports * and ?Methods in cloud.opencode.base.cache with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> LayeredCache.Builder <K, V> Creates a builder for layered cache 创建分层缓存构建器static <K,V> WriteBehindCache.Builder <K, V> Create a builder for WriteBehindCache 创建 WriteBehindCache 构建器static <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 为给定的缓存开始装饰器链static <K,V> LayeredCache <K, V> Creates a layered cache with default settings 使用默认设置创建分层缓存static <K,V> CopyOnReadCache.Builder <K, V> Wrap a cache with copy-on-read behavior 使用读时复制行为包装缓存static <K,V> NullSafeCache <K, V> Wrap an existing cache with null-safe behavior 用空值安全行为包装现有缓存static <K,V> ProtectedCache.Builder <K, V> Wrap a cache with protection 使用保护包装缓存static <K,V> ReadThroughCache.Builder <K, V> Wrap an existing cache with read-through behavior 用读穿透行为包装现有缓存static <K,V> RefreshAheadCache.Builder <K, V> Wrap a cache with refresh-ahead behavior 使用提前刷新行为包装缓存static <K,V> TimeoutCache.Builder <K, V> Wrap a cache with timeout support 使用超时支持包装缓存static <K,V> WriteThroughCache.Builder <K, V> Wrap an existing cache with write-through behavior 用写穿透行为包装现有缓存Method parameters in cloud.opencode.base.cache with type arguments of type CacheModifier and TypeMethodDescriptionTenantCache.Builder.cacheFactory(Supplier<Cache<K, V>> factory) Set custom cache factory for creating tenant caches 设置自定义缓存工厂以创建租户缓存CacheDecorators.ChainBuilder.with(UnaryOperator<Cache<K, V>> decorator) Apply a custom decorator 应用自定义装饰器 -
Uses of Cache in cloud.opencode.base.cache.bulk
Methods in cloud.opencode.base.cache.bulk with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> BulkOperations <K, V> Create bulk operations for a cache 为缓存创建批量操作 -
Uses of Cache in cloud.opencode.base.cache.compression
Classes in cloud.opencode.base.cache.compression that implement CacheModifier and TypeClassDescriptionclassCompressedCache<K,V> Compressed Cache - Cache decorator that compresses values 压缩缓存 - 压缩值的缓存装饰器Methods in cloud.opencode.base.cache.compression with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> CompressedCache.Builder <K, V> Create builder to wrap an existing cache 创建构建器以包装现有缓存 -
Uses of Cache in cloud.opencode.base.cache.metrics
Methods in cloud.opencode.base.cache.metrics with parameters of type CacheModifier and TypeMethodDescriptionRegister a cache for metrics collection 注册缓存进行指标收集Register a cache for metrics export 注册缓存以导出指标 -
Uses of Cache in cloud.opencode.base.cache.multilevel
Classes in cloud.opencode.base.cache.multilevel that implement CacheModifier and TypeClassDescriptionclassMultiLevelCache<K,V> Multi-Level Cache - Supports 3+ levels with flexible configuration 多级缓存 - 支持 3 个以上级别的灵活配置Methods in cloud.opencode.base.cache.multilevel that return CacheModifier and TypeMethodDescriptionMultiLevelCache.LevelConfig.cache()Returns the value of thecacherecord component.MultiLevelCache.getLevel(int level) Get cache at specific level 获取特定级别的缓存Methods in cloud.opencode.base.cache.multilevel with parameters of type CacheModifier and TypeMethodDescriptionSets the cache for this level | 设置此级别的缓存Constructors in cloud.opencode.base.cache.multilevel with parameters of type Cache -
Uses of Cache in cloud.opencode.base.cache.query
Methods in cloud.opencode.base.cache.query with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> CacheQuery <K, V> Create a query for a cache 为缓存创建查询 -
Uses of Cache in cloud.opencode.base.cache.reactive
Methods in cloud.opencode.base.cache.reactive that return CacheMethods in cloud.opencode.base.cache.reactive with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> ReactiveCache <K, V> Wrap a cache with reactive support 使用响应式支持包装缓存 -
Uses of Cache in cloud.opencode.base.cache.resilience
Methods in cloud.opencode.base.cache.resilience with parameters of type CacheModifier and TypeMethodDescriptionRetrieves a value, trying distributed cache first with automatic local cache fallback.voidGracefulDegradation.put(K key, V value, Duration ttl, Cache<K, V> localCache, DistributedCache<K, V> distributedCache) Stores a value based on the current degradation state. -
Uses of Cache in cloud.opencode.base.cache.testing
Classes in cloud.opencode.base.cache.testing that implement CacheModifier and TypeClassDescriptionstatic classSimple mock cache implementation for testing 用于测试的简单模拟缓存实现static classCache that records all operations for verification 记录所有操作以供验证的缓存 -
Uses of Cache in cloud.opencode.base.cache.ttl
Classes in cloud.opencode.base.cache.ttl that implement CacheModifier and TypeClassDescriptionclassVariableTtlCache<K,V> Variable TTL Cache - Cache with per-entry TTL based on policies 可变 TTL 缓存 - 基于策略的每条目 TTL 缓存Methods in cloud.opencode.base.cache.ttl with parameters of type CacheModifier and TypeMethodDescriptionstatic <K,V> VariableTtlCache.Builder <K, V> Create builder to wrap an existing cache 创建构建器以包装现有缓存 -
Uses of Cache in cloud.opencode.base.cache.util
Methods in cloud.opencode.base.cache.util with parameters of type Cache -
Uses of Cache in cloud.opencode.base.cache.warming
Methods in cloud.opencode.base.cache.warming with parameters of type CacheModifier and TypeMethodDescriptionSets the cache | 设置缓存<K,V> CacheWarmerManager CacheWarmerManager.register(String name, Cache<K, V> cache, CacheWarmer<K, V> warmer) Register a cache warmer 注册缓存预热器<K,V> CacheWarmerManager CacheWarmerManager.register(String name, Cache<K, V> cache, CacheWarmer<K, V> warmer, int priority) Register a cache warmer with priority 注册带优先级的缓存预热器