From 05f26fbf3b005c6ad0145a1776a64e880b8b4782 Mon Sep 17 00:00:00 2001 From: shouya <526598+shouya@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:50:35 +0900 Subject: [PATCH] adjust default cache parameter for feed_cache --- src/filter_cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter_cache.rs b/src/filter_cache.rs index 4ff207e..be8a26c 100644 --- a/src/filter_cache.rs +++ b/src/filter_cache.rs @@ -20,7 +20,7 @@ pub struct FilterCache { impl FilterCache { pub fn new() -> Self { Self { - feed_cache: TimedLruCache::new(1, Duration::from_secs(12 * 3600)), + feed_cache: TimedLruCache::new(5, Duration::from_secs(12 * 3600)), post_cache: TimedLruCache::new(40, Duration::from_secs(3600)), } }