class

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)
Source

Instance methods

cache_key(task_name : String, input_data : String, dependencies : Array(String)) : String
Source
clear
Source
get(task_name : String, input_data : String, dependencies : Array(String)) : CacheEntry | Nil
Source
invalidate(task_name : String)
Source
invalidate_by_files(changed_files : Array(String))
Source
put(task_name : String, input_data : String, output_data : String, dependencies : Array(String), file_dependencies : Array(String), success : Bool, result_data : String | Nil = nil)
Source
stats
Source

Nested types