From 9987337c7f9b6952bce9678966df7515ac757cd2 Mon Sep 17 00:00:00 2001 From: Bulat Kurbanov Date: Thu, 22 Feb 2024 20:49:02 +0100 Subject: [PATCH] Update caches --- src/bots_manager/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/bots_manager/mod.rs b/src/bots_manager/mod.rs index c68f235..2796f70 100644 --- a/src/bots_manager/mod.rs +++ b/src/bots_manager/mod.rs @@ -27,22 +27,22 @@ use self::internal::set_webhook; pub static USER_ACTIVITY_CACHE: Lazy> = Lazy::new(|| { Cache::builder() - .time_to_idle(Duration::from_secs(5 * 60)) - .max_capacity(2048) + .time_to_idle(Duration::from_secs(30 * 60)) + .max_capacity(4096) .build() }); pub static USER_LANGS_CACHE: Lazy>> = Lazy::new(|| { Cache::builder() - .time_to_idle(Duration::from_secs(5 * 60)) - .max_capacity(2048) + .time_to_idle(Duration::from_secs(30 * 60)) + .max_capacity(4096) .build() }); pub static CHAT_DONATION_NOTIFICATIONS_CACHE: Lazy> = Lazy::new(|| { Cache::builder() .time_to_idle(Duration::from_secs(24 * 60 * 60)) - .max_capacity(2048) + .max_capacity(4098) .build() });