Commit 2c8bd52
docs(cache): document key vs value design principle
Key fields create separate entries (reverting a change can hit the old
entry). Value fields overwrite the same entry (no need to remember old
state).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 06775f8 commit 2c8bd52
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
0 commit comments