Crates.io | generic_filesystem_cache |
lib.rs | generic_filesystem_cache |
version | 0.1.0 |
source | src |
created_at | 2021-10-30 15:13:10.041313 |
updated_at | 2021-10-30 15:13:10.041313 |
description | a cache for slow-to-compute information based on the state of on-disk objects. Includes capability to update entries based on the last-modified-time attribute |
homepage | |
repository | https://github.com/Farmadupe/generic_filesystem_cache |
max_upload_size | |
id | 474410 |
size | 31,205 |
A small rust library for caching slow-to-compute data based on hard drive contents. Given a set of starting paths and a 'processing function' supplied by you, this library will recursively scan the filesystem from those starting paths and apply the processing function to each file.
The cache will save cached data to disk at a path given by you whenever a set number of changes has occurred inside the cache.
When directed by you, the cache will update itself if the 'modification time' of any cached file is changed.
Supports Parallel loading (through rayon)
Will cache any serializable type
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.