mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 07:25:36 +01:00
Reduce cache size
This commit is contained in:
@@ -51,15 +51,15 @@ impl BotsManager {
|
|||||||
app_state: AppState {
|
app_state: AppState {
|
||||||
user_activity_cache: Cache::builder()
|
user_activity_cache: Cache::builder()
|
||||||
.time_to_live(Duration::from_secs(5 * 60))
|
.time_to_live(Duration::from_secs(5 * 60))
|
||||||
.max_capacity(16384)
|
.max_capacity(2048)
|
||||||
.build(),
|
.build(),
|
||||||
user_langs_cache: Cache::builder()
|
user_langs_cache: Cache::builder()
|
||||||
.time_to_live(Duration::from_secs(5 * 60))
|
.time_to_live(Duration::from_secs(5 * 60))
|
||||||
.max_capacity(16384)
|
.max_capacity(2048)
|
||||||
.build(),
|
.build(),
|
||||||
chat_donation_notifications_cache: Cache::builder()
|
chat_donation_notifications_cache: Cache::builder()
|
||||||
.time_to_live(Duration::from_secs(24 * 60 * 60))
|
.time_to_live(Duration::from_secs(24 * 60 * 60))
|
||||||
.max_capacity(32768)
|
.max_capacity(2048)
|
||||||
.build(),
|
.build(),
|
||||||
},
|
},
|
||||||
next_port: 8000,
|
next_port: 8000,
|
||||||
|
|||||||
Reference in New Issue
Block a user