pub async fn file_cached_with_mtime<P: AsRef<str>>(
path: P,
cache: Option<&FileCache>,
) -> Option<(Bytes, OffsetDateTime)>Expand description
Like file_cached, but also gives you the timestamp of the last modification to the file.
pub async fn file_cached_with_mtime<P: AsRef<str>>(
path: P,
cache: Option<&FileCache>,
) -> Option<(Bytes, OffsetDateTime)>Like file_cached, but also gives you the timestamp of the last modification to the file.