pub trait Expired {
// Required method
fn is_expired(&self) -> bool;
}Expand description
用于判断缓存数据是否已过期的 trait。
Required Methods§
Sourcefn is_expired(&self) -> bool
fn is_expired(&self) -> bool
返回 true 表示数据已过期,应从缓存中移除。
pub trait Expired {
// Required method
fn is_expired(&self) -> bool;
}用于判断缓存数据是否已过期的 trait。
返回 true 表示数据已过期,应从缓存中移除。