argument('text'); if ($text) { $ok = $service->clearEmbeddingCache($text); if ($ok) { $this->info("已清理指定文本的缓存: \"{$text}\""); } else { $this->warn("缓存不存在: \"{$text}\""); } } else { $count = $service->clearAllEmbeddingCache(); $this->info("已清理所有 embedding 缓存,共 {$count} 条"); } return 0; } }