Uses of Interface
cloud.opencode.base.cache.ttl.TtlDecayPolicy
Packages that use TtlDecayPolicy
-
Uses of TtlDecayPolicy in cloud.opencode.base.cache.ttl
Classes in cloud.opencode.base.cache.ttl that implement TtlDecayPolicyModifier and TypeClassDescriptionstatic final recordExponential decay implementation 指数衰减实现static final recordLinear decay implementation 线性衰减实现static final recordNo decay - constant TTL 不衰减 - 恒定 TTLstatic final recordStep decay implementation 阶梯衰减实现Methods in cloud.opencode.base.cache.ttl that return TtlDecayPolicyModifier and TypeMethodDescriptionstatic TtlDecayPolicyTtlDecayPolicy.exponential(Duration initialTtl, Duration minimumTtl, double decayFactor) Create exponential decay policy 创建指数衰减策略static TtlDecayPolicyCreate linear decay policy 创建线性衰减策略static TtlDecayPolicyCreate no-decay policy (constant TTL) 创建不衰减策略(恒定 TTL)static TtlDecayPolicyTtlDecayPolicy.step(TtlDecayPolicy.Step... steps) Create step decay policy 创建阶梯衰减策略Methods in cloud.opencode.base.cache.ttl with parameters of type TtlDecayPolicyModifier and TypeMethodDescriptionVariableTtlCache.Builder.decayPolicy(TtlDecayPolicy policy) Set TTL decay policy 设置 TTL 衰减策略