aboutsummaryrefslogtreecommitdiffstats
path: root/src/cache.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cache.rs')
-rw-r--r--src/cache.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cache.rs b/src/cache.rs
index 4ef77dc..0c254cb 100644
--- a/src/cache.rs
+++ b/src/cache.rs
@@ -82,3 +82,8 @@ where
pub type CacheFuture<Output> = Pin<Box<(dyn Future<Output = Result<Output, (StatusCode, &'static str)>> + Send + Sync)>>;
pub type CacheGetter<Output> = fn(&String) -> CacheFuture<Output>;
pub type Cache<Output> = Arc<RwLock<AsyncCache<String, Output, CacheGetter<Output>>>>;
+
+pub fn touch() {
+ user::touch();
+ font::touch();
+}