aggrega cache
ตรวจ
รูป
aggrega cacheคำ
Inspect and maintain the caches the compiler populates.
status lists cache contents, one element per line, then a summary line.prune reclaims artifact-cache entries no workspace lockfile references.evict trims the compiled-module cache to a size cap, oldest first.clear wipes every cache, including the compiled-module store.คำ
| คำ | คำ |
|---|---|
aggrega cache clear | ล้าง |
aggrega cache evict | ตัด |
aggrega cache prune | ลบ |
aggrega cache status | แสดง |
คำaggrega cache clear
Wipe every cache: the workspace artifact cache (entities, source artifacts,external inputs) and the caches every project on the machine shares (compiledmodules, plugin descriptors, documentation bundles, and the cli plugins addedwhere no workspace was found). This is the total-wipe verb; unlike prune itreclaims the compiled-module cache and the documentation bundles as well.Cleared caches repopulate on the next build, and the documentation bundle onthe next read of the documentation; a cli plugin cleared from the cache isfetched again by adding it again.
Because the wipe is irreversible, clear asks for confirmation before removinganything. Pass --yes to skip the prompt for non-interactive use; without --yeson a non-interactive stdin it refuses rather than blocking on a prompt no onecan answer.แฟล็กaggrega cache clear
| แฟล็ก | ค่า | คำ |
|---|---|---|
--yes | false | ข้าม |
คำaggrega cache evict
Trim the compiled-module cache to a size cap by removing theleast-recently-compiled modules first, until the cache total is at or below--max-size. The compiled-module cache is machine-global: every provider guest iscompiled once and reused across every project on the machine, so over time it candominate on-disk cache use.
Unlike prune (which reclaims artifact-cache entries no lockfile references) andclear (which wipes every cache), evict is size-bounded and touches only thecompiled-module cache. Evicted modules recompile on demand on the next build, soeviction loses no irrecoverable state.
--max-size is required and accepts a binary-unit size in the same vocabulary thestatus summary prints — for example 5GiB, "4.5 GiB", or 512MiB — or a bareinteger byte count. The unit suffix is case-insensitive and an optional spacemay separate the number from the unit.
This verb is the on-demand trim, at a cap you give it once. The cache is alsoheld to a standing cap without being asked: every invocation that loads a pluginapplies the `compiled_module_cache.max_bytes` setting (53687091200 bytes, 50 GiB,by default) before it compiles anything, using this same removal order. Use thisverb to reclaim space now or below the standing cap; change the setting to movethe standing cap itself. When the cache already fits the cap, evict reports ano-op and removes nothing.แฟล็กaggrega cache evict
| แฟล็ก | ค่า | คำ |
|---|---|---|
--max-size | — | เพดาน |
คำaggrega cache prune
Remove cache entries whose content digest no workspace lockfile references,retaining every referenced entry. The reference set is the union of thedigests pinned across every lockfile (*.lock) in the workspace, together withthe digests the configuration's plugins.cli list pins, so a cli plugin youadded keeps the bytes it runs from.
Prune acts on the caches whose entries carry a content digest — the workspaceartifact cache (entities, source artifacts, external inputs), theplugin-describe cache and the cli-plugin cache, which holds the cli pluginsadded where no workspace was found — and on the compiled-module cache by reference: a compiledplugin module is reclaimed when no lockfile still references the plugin itbelongs to, and the shared runtime module every plugin depends on is reclaimedonce the last plugin referring to it is pruned. A compiled module that cannot betraced back to a plugin is retained rather than removed on a guess; thatremainder is reclaimed by "aggrega cache evict" or "aggrega cache clear".
Prune needs a pulled workspace: it fails when no lockfile is present.คำaggrega cache status
List the contents of every cache, one element per line, followed by asummary line of the form "N elements, <human size>". The listing isdeterministic: identical cache state produces byte-identical output.แคชคืออะไร และไม่ใช่อะไร
แคชartifact_cache_dir (.aggrega/cache ตาม
ผล
เมื่อ$ref: ไปremediation: ที่
aggrega buildและaggrega validate --release <release>อ่านไฟล์ ล็อก ของ Release บรรทัด นั้น จึง ระบุ aggrega pull --release <release>เพื่อหา ค่า ไลบรารี และ บันทึก รายการ ของ ไลบรารี aggrega validateที่ไม่มี อาร์กิวเมนต์ และ aggrega validate <entity-path>ที่มี หรือ ไม่มี --releaseอ่านไลบรารี จาก ไดเรกทอรี แค็ตตาล็อก เท่านั้น และ ไม่ อ่าน ไฟล์ ล็อก รายการ ที่ บันทึก ไว้ จึง ไม่ เปลี่ยน คำ ตัดสิน ของ คำ สั่ง เหล่า นั้น บรรทัด นั้น บอก เช่น นั้น และ ระบุ aggrega pull --release <release>ตามด้วย aggrega validate --release <release>ซึ่งตรวจ สอบ Release กับ สิ่ง ที่ ไฟล์ ล็อก ปัก หมุด ไว้ aggrega pullและaggrega build --auto-pullภายใต้ ท่าที ออฟไลน์ ดึง ไลบรารี ไม่ ได้ และ บันทึก รายการ ของ ไลบรารี ไม่ ได้ บรรทัด นั้น จึง บอก ให้ รัน aggrega pull --release <release>ในที่ ที่ เข้า ถึง รีจิสทรี ได้ เมื่อ เชื่อม ต่อ อยู่ การ pull ที่ ไม่ พบ ไลบรารี ใน ไดเรกทอรี แค็ตตาล็อก ใด และ รีจิสทรี ใด ที่ อ่าน เลย จะ ไม่มี รายการ ให้ บันทึก
ทุก
สิ่งaggrega pull --release <release> หาworkspace.catalog_dirs แทน เพราะaggrega cache prune ล้าง
สำหรับartifact_cache_dir และ
แคชที่เป็นของโปรเจกต์นี้และแคชที่เป็นของเครื่อง
แคช
เป็นartifact_cache_dir — ได้แก่
ใช้aggrega explain คำaggrega draft --example เขียน
ที่aggrega plugin add cli ไว้aggrega plugin add cli <name> จะaggrega plugin add cli ที่
ที่aggrega\cache ภายในLOCALAPPDATA ระบุ บน macOS ใต้ ~/Library/Caches/aggrega และaggrega ภายในXDG_CACHE_HOME ระบุ — คือ ~/.cache/aggrega เมื่อXDG_CACHE_HOME — aggrega config init พิมพ์aggrega draft --example ปฏิเสธaggrega plugin add cli ที่
aggrega cache status ระบุprune, evict และ clear ลบ evict ดำเนินprune ไม่prune เก็บplugins.cli ในclear ดำเนิน
รูทstatus, evict และ clear จะ
note: —workspace-root names the workspace root
"<root>", which is not a directory:<root>; only the machine-wide caches are acted on (หมายเหตุ: —workspace-root ระบุรูท ของ พื้นที่ ทำงาน ซึ่ง ไม่ใช่ ไดเรกทอรี ดำเนิน การ เฉพาะ กับ แคช ระดับ เครื่อง)
เส้นwhich cannot be used: และwhich is not a directory: ส่วน prune จะ
เรื่องaggrega mcp
ลิงก์ในแคชอาร์ติแฟกต์
ไดเรกทอรี.aggrega/cache และartifact_cache_dir ระบุ../shared-cache) เหมือน.aggrega/cache/inputs หรือ
- การ pull การ
บิลด์ และ จะการ ดำเนิน การ อื่น ทุก อย่าง ที่ เขียน แคช หยุด ด้วย E0320โดยระบุ ลิงก์ และ ปลาย ทาง ที่ ลิงก์ ชี้ ไป และ ไม่ เขียน สิ่ง ใด เลย status,pruneและclearไม่แสดง รายการ สิ่ง ใด ผ่าน ลิงก์ ดัง กล่าว เมื่อ ไดเรกทอรี ของ แคช เอง เป็น ลิงก์ statusจะหยุด ด้วย E0321ส่วนpruneหรือclearจะหยุด ด้วย E0320ก่อนแสดง รายการ หรือ ลบ สิ่ง ใด — จึง ไม่มี สิ่ง ที่ ลิงก์ ชี้ ไป ถูก ลบ และ ลิงก์ ยัง อยู่ ที่ เดิม เมื่อ ไฟล์ ภายใน ไดเรกทอรี หนึ่ง เป็น ลิงก์ ทั้ง สาม คำ สั่ง จะ หยุด ด้วย E0321- การ
บิลด์ การ pull และ จะการ ดำเนิน การ อื่น ทุก อย่าง ที่ อ่าน แคช หยุด ด้วย E0321แทนที่จะ อ่าน ไบต์ ที่ เก็บ ไว้ ที่ อื่น แม้ ไบต์ เหล่า นั้น จะ ตรง กับ ไดเจสต์ ที่ ไฟล์ ล็อก บันทึก ไว้ - ลิงก์
ที่ เมื่ออยู่ ภายใน ไดเรกทอรี แคช จะ ถูก ตาม ไป ไดเรกทอรี ของ แคช เอง เป็น ลิงก์ ไป ยัง ไดเรกทอรี อื่น ภายใน ไดเรกทอรี แคช ไดเรกทอรี นั้น ถือ เป็น ของ แคช statusแสดงรายการ สิ่ง ที่ อยู่ ที่ นั่น pruneลบจาก ที่ นั่น และ clearล้างให้ ว่าง เก็บ ลิงก์ ไว้ และ รายงาน จำนวน ไบต์ ที่ ลบ ออก จาก ที่ นั่น
ไดเรกทอรีartifact_cache_dir ที่E0321 หรือ E0320 โดย
ลบartifact_cache_dir เป็นclear เก็บ
ดูเพิ่มเติม
aggrega-pull— หาค่า การ พึ่งพา ของ Release ลงใน ไฟล์ ล็อก และ แคช aggrega-config— ตำแหน่งที่ เขียน artifact_cache_dirและการ ตั้ง ค่า แคช อื่นๆ