Skip to content

docs: document DENO_CACHE_MAX_SIZE env var (2.8)#3079

Open
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-cache-max-size
Open

docs: document DENO_CACHE_MAX_SIZE env var (2.8)#3079
lunadogbot wants to merge 1 commit intodenoland:mainfrom
lunadogbot:docs/2.8-cache-max-size

Conversation

@lunadogbot
Copy link
Copy Markdown

Summary

Adds DENO_CACHE_MAX_SIZE to the Special environment variables table on runtime/reference/env_variables.md, documenting the new automatic cache-trimming knob in Deno 2.8 (denoland/deno#32932).

  • Trim runs after cache-writing subcommands (run, cache, check, test, bench, compile, install, serve, eval).
  • Oldest files (by mtime) are removed first.
  • Accepts human-readable size suffixes: B, K/KB, M/MB, G/GB, T/TB, case-insensitive, fractional values like 1.5G.

Test plan

  • deno task serve — env_variables table renders, the new row aligns.

Adds DENO_CACHE_MAX_SIZE to the special-environment-variables table.
Notes the LRU-by-mtime trim behavior, the supported size suffixes
(B/K/KB/M/MB/G/GB/T/TB, case-insensitive, fractional), and which
subcommands trigger the trim.

Refs denoland/deno#32932
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant