diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-10 14:45:04 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-10 14:45:04 -0500 |
| commit | 652b163002a379b74ef9ca26141c3148d68d6c9c (patch) | |
| tree | 69ec08b7e617c0e4e2a6943ff1c684f0d52859b9 /tests/test-selection-framework-keybindings.el | |
| parent | c7ba92fd8ccb7c17bb462f0375513b02e84d72e1 (diff) | |
| download | dotemacs-652b163002a379b74ef9ca26141c3148d68d6c9c.tar.gz dotemacs-652b163002a379b74ef9ca26141c3148d68d6c9c.zip | |
feat(cj-cache): add TTL+building cache helper
Phase 5 step 2 of utility-consolidation. Add `modules/cj-cache.el' implementing the API specified in `docs/design/cache-helper-design.org': `cj/cache-make' / `cj/cache-valid-p' / `cj/cache-value-or-rebuild' / `cj/cache-building-p' / `cj/cache-invalidate'.
The helper captures the TTL+building-guard pattern that org-agenda-config and org-refile-config currently hand-roll. Both consumers will migrate in follow-up commits. No call-site changes in this commit -- helper plus its 15 tests only.
Tests cover: default and custom TTL, fresh/recent/expired/nil-value validity, miss calls build / hit skips build, force-rebuild overrides hit, the four log callbacks (on-hit / on-build-start / on-build-success / on-build-error), error-rethrow and building-flag cleanup on both success and error paths.
Diffstat (limited to 'tests/test-selection-framework-keybindings.el')
0 files changed, 0 insertions, 0 deletions
