Package cloud.opencode.base.cache.testing
package cloud.opencode.base.cache.testing
-
ClassDescriptionCache Test Support - Testing utilities for cache unit tests 缓存测试支持 - 缓存单元测试工具Sealed interface for cache operations 缓存操作密封接口Get operation | 获取操作Get all operation | 批量获取操作Get with loader operation | 带加载器的获取操作Invalidate operation | 失效操作Invalidate all operation | 批量失效操作Put operation | 放入操作Put all operation | 批量放入操作Put all with TTL operation | 带过期时间的批量放入操作Put if absent operation | 不存在则放入操作Put if absent with TTL operation | 带过期时间的不存在则放入操作Put with TTL operation | 带过期时间的放入操作Simple mock cache implementation for testing 用于测试的简单模拟缓存实现Cache that records all operations for verification 记录所有操作以供验证的缓存Controllable clock for testing time-dependent cache behavior 用于测试时间相关缓存行为的可控时钟