aboutsummaryrefslogtreecommitdiffstats
path: root/src/cache.rs
diff options
context:
space:
mode:
authoralyx <alyx@aleteoryx.me>2024-04-06 16:59:12 -0400
committeralyx <alyx@aleteoryx.me>2024-04-06 16:59:12 -0400
commita8046f11e551c69d1e45cd432694b4c8a04ee7b7 (patch)
tree6f9a5b02f8be209f46ff2c30d2d51ffc070a2226 /src/cache.rs
parent79999cecedd84e99655fbcdba0bd4e715a22173f (diff)
downloadlfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.tar.gz
lfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.tar.bz2
lfm_embed-a8046f11e551c69d1e45cd432694b4c8a04ee7b7.zip
Lua dev mode functional
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();
+}