struct LLM::Cache::DeleteOutcome

Overview

Returned by bulk mutations so callers can surface both successful deletes and per-file failures (the prior shape returned just an Int32, hiding partial failures behind a single number that the caller would print as if everything succeeded).

Defined in:

llm/cache.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(deleted : Int32, failed : Int32) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(deleted _deleted = @deleted, failed _failed = @failed) #

[View source]
def deleted : Int32 #

def failed : Int32 #

def total #

[View source]