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 | eb512124d9d587f9f26a17e9031f30a2cfff9476 (patch) | |
| tree | 69ec08b7e617c0e4e2a6943ff1c684f0d52859b9 /tests/test-system-lib-executable-find-or-warn.el | |
| parent | 0d6865d35c78e52775e73bef2e63f08682d22d6f (diff) | |
| download | dotemacs-eb512124d9d587f9f26a17e9031f30a2cfff9476.tar.gz dotemacs-eb512124d9d587f9f26a17e9031f30a2cfff9476.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-system-lib-executable-find-or-warn.el')
0 files changed, 0 insertions, 0 deletions
