Interface CacheTestSupport.CacheOperation<K,V>
- Type Parameters:
K- the key type | 键类型V- the value type | 值类型
- All Known Implementing Classes:
CacheTestSupport.CacheOperation.Get, CacheTestSupport.CacheOperation.GetAll, CacheTestSupport.CacheOperation.GetWithLoader, CacheTestSupport.CacheOperation.Invalidate, CacheTestSupport.CacheOperation.InvalidateAll, CacheTestSupport.CacheOperation.Put, CacheTestSupport.CacheOperation.PutAll, CacheTestSupport.CacheOperation.PutAllWithTtl, CacheTestSupport.CacheOperation.PutIfAbsent, CacheTestSupport.CacheOperation.PutIfAbsentWithTtl, CacheTestSupport.CacheOperation.PutWithTtl
- Enclosing class:
CacheTestSupport
public static sealed interface CacheTestSupport.CacheOperation<K,V>
permits CacheTestSupport.CacheOperation.Get<K,V>, CacheTestSupport.CacheOperation.GetWithLoader<K,V>, CacheTestSupport.CacheOperation.GetAll<K,V>, CacheTestSupport.CacheOperation.Put<K,V>, CacheTestSupport.CacheOperation.PutAll<K,V>, CacheTestSupport.CacheOperation.PutIfAbsent<K,V>, CacheTestSupport.CacheOperation.PutWithTtl<K,V>, CacheTestSupport.CacheOperation.PutAllWithTtl<K,V>, CacheTestSupport.CacheOperation.PutIfAbsentWithTtl<K,V>, CacheTestSupport.CacheOperation.Invalidate<K,V>, CacheTestSupport.CacheOperation.InvalidateAll<K,V>
Sealed interface for cache operations
缓存操作密封接口
- Since:
- JDK 25, opencode-base-cache V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordGet operation | 获取操作static final recordGet all operation | 批量获取操作static final recordGet with loader operation | 带加载器的获取操作static final recordInvalidate operation | 失效操作static final recordInvalidate all operation | 批量失效操作static final recordPut operation | 放入操作static final recordPut all operation | 批量放入操作static final recordPut all with TTL operation | 带过期时间的批量放入操作static final recordPut if absent operation | 不存在则放入操作static final recordPut if absent with TTL operation | 带过期时间的不存在则放入操作static final recordPut with TTL operation | 带过期时间的放入操作