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

[View on GitCafe](https://git.cafe/flambo/t3code/commit/b81b5616ecd834e27a3d2ac650e44d914edcd503)

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

Visibility: public

Requested revision: b81b5616ecd834e27a3d2ac650e44d914edcd503

Requested commit: b81b5616ecd834e27a3d2ac650e44d914edcd503

Commit: b81b5616ecd834e27a3d2ac650e44d914edcd503

Tree: 646e1653d8963c79e9c5636a83d004c0ba591790

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

- [be32ce9792ccbe25a3eb2301a35c239b43dca282](https://git.cafe/flambo/t3code/commit/be32ce9792ccbe25a3eb2301a35c239b43dca282?format=markdown)

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