# Use LRU cache for keybinding when-expression AST parsing · gitcafe/t3code

[View on GitCafe](https://git.cafe/gitcafe/t3code/commit/dd3babdcad749bd142a755fbc26c39085c85bc1c)

Repository: [gitcafe/t3code](https://git.cafe/gitcafe/t3code)

Visibility: public

Requested revision: dd3babdcad749bd142a755fbc26c39085c85bc1c

Requested commit: dd3babdcad749bd142a755fbc26c39085c85bc1c

Commit: dd3babdcad749bd142a755fbc26c39085c85bc1c

Tree: 93428fd6f911ccc41ca3cd1bf860ad36bc53c670

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Use LRU cache for keybinding when-expression AST parsing

- add reusable `LruCache` utility with bounded eviction
- replace keybinding AST cache clear-all behavior with true LRU lookups
- add unit tests for eviction, recency updates, and capacity validation

```

## Parents

- [7aa717c5c21e74607b4f5e796491af417dc90ccf](https://git.cafe/gitcafe/t3code/commit/7aa717c5c21e74607b4f5e796491af417dc90ccf?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/t3code/tree/dd3babdcad749bd142a755fbc26c39085c85bc1c?format=markdown)
