Manages caching of consensus analysis results
cache_dirDirectory to store cache files
cache_versionCurrent cache version
new()Initialize cache manager
CacheManager$new(cache_dir = NULL)cache_dirDirectory to store cache files (defaults to tempdir())
generate_key()Generate cache key from input parameters (improved version)
CacheManager$generate_key(input, models, cluster_id)inputInput data
modelsModels used
cluster_idCluster ID
Cache key string
save_to_cache()Save results to cache
CacheManager$save_to_cache(key, data)keyCache key
dataData to cache
load_from_cache()Load results from cache
CacheManager$load_from_cache(key)keyCache key
Cached data if exists, NULL otherwise
has_cache()Check if results exist in cache
CacheManager$has_cache(key)keyCache 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)confirmBoolean, if TRUE, will clear cache without confirmation
validate_cache()Validate cache content
CacheManager$validate_cache(key)keyCache 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)deepWhether to make a deep clone.