nodejs / nodejs/undici

Cache max size

Open
#4,199 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
7.7k
Forks
880
Avg merge
2d 16h
Merged PRs (30d)
68

Description

I think we could probably implement a max size with the sqlite backend by learning from how node impements localstorage with storage limit.

See: https://github.com/nodejs/node/blob/main/src/node_webstorage.cc#L108

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked Node implementation at src/node_webstorage.cc around line 108, then locate the SQLite-backed cache entry point in undici. Determine the intended size limit and how it should be enforced; the issue does not specify tests, affected files, or acceptance criteria, so completion remains undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sqlite
Domain
backend, databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.