Commit 1c49b33
committed
refactor: Implement LRU cache for folded content
- Replace ConcurrentHashMap with LinkedHashMap for foldedContentCache
- Set maximum cache size to 10 entries
- Implement removeEldestEntry to maintain LRU behavior1 parent 55834b2 commit 1c49b33
File tree
1 file changed
+7
-1
lines changed- src/main/kotlin/ai/devchat/plugin/completion/agent
1 file changed
+7
-1
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
84 | 90 | | |
85 | 91 | | |
86 | 92 | | |
| |||
0 commit comments