Function kvarn::read::file_cached
source · [−]Expand description
Reads a file using a cache
.
Should be used instead of fs::File::open()
.
Should only be used when a file is typically access several times or from several requests.