Topia::TaskCache
Inherits Reference < Object
High-performance task result caching with intelligent invalidation
Constructors
new(cache_dir : String = ".topia/cache", max_age : Time::Span = 24.hours, max_entries : Int32 = 1000)
SourceInstance methods
cache_key(task_name : String, input_data : String, dependencies : Array(String)) : String
Sourceclear
Sourceget(task_name : String, input_data : String, dependencies : Array(String)) : CacheEntry | Nil
Sourceinvalidate(task_name : String)
Sourceinvalidate_by_files(changed_files : Array(String))
Sourceput(task_name : String, input_data : String, output_data : String, dependencies : Array(String), file_dependencies : Array(String), success : Bool, result_data : String | Nil = nil)
Sourcestats
Source