Class | RGen::Util::FileCacheMap |
In: |
lib/rgen/util/file_cache_map.rb
|
Parent: | Object |
Implements a cache for storing and loading data associated with arbitrary files. The data is stored in cache files within a subfolder of the folder where the associated files exists. The cache files are protected with a checksum and loaded data will be invalid in case either the associated file are the cache file has changed.
version_info | [RW] | optional program version info to be associated with the cache files if the program version changes, cached data will also be invalid |
cache_dir is the name of the subfolder where cache files are created postfix is an extension appended to the original file name for creating the name of the cache file
remove cache files which are not associated with any file in key_paths will only remove files within root_path