fix(common): The expiry duration of TtlValue is 1 day
Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Andy Balaam
parent
696d1cacbe
commit
1a170ddf90
@@ -147,7 +147,7 @@ pub struct TtlValue<T> {
|
||||
impl<T> TtlValue<T> {
|
||||
/// The number of milliseconds after which the data is considered stale.
|
||||
///
|
||||
/// This matches 7 days.
|
||||
/// This matches 1 day.
|
||||
pub const STALE_THRESHOLD: f64 = (1000 * 60 * 60 * 24) as _;
|
||||
|
||||
/// Construct a new `TtlValue` with the given data.
|
||||
|
||||
Reference in New Issue
Block a user