Manages caching of consensus analysis results
cache_dir
Directory to store cache files
cache_version
Current cache version
new()
Initialize cache manager
CacheManager$new(cache_dir = NULL)
cache_dir
Directory to store cache files (defaults to tempdir())
generate_key()
Generate cache key from input parameters (improved version)
CacheManager$generate_key(input, models, cluster_id)
input
Input data
models
Models used
cluster_id
Cluster ID
Cache key string
save_to_cache()
Save results to cache
CacheManager$save_to_cache(key, data)
key
Cache key
data
Data to cache
load_from_cache()
Load results from cache
CacheManager$load_from_cache(key)
key
Cache key
Cached data if exists, NULL otherwise
has_cache()
Check if results exist in cache
CacheManager$has_cache(key)
key
Cache key
TRUE if cached results exist
get_cache_stats()
Get cache statistics
CacheManager$get_cache_stats()
A list with cache statistics
clear_cache()
Clear all cache
CacheManager$clear_cache(confirm = FALSE)
confirm
Boolean, if TRUE, will clear cache without confirmation
validate_cache()
Validate cache content
CacheManager$validate_cache(key)
key
Cache key
TRUE if cache is valid, FALSE otherwise Extract genes from input in a standardized way
clone()
The objects of this class are cloneable with this method.
CacheManager$clone(deep = FALSE)
deep
Whether to make a deep clone.