Move LRU cache helpers to twenty-shared
Merged
FE
14h ago+198+198+012345678901234567890123456789-86-86-01234567890123456789
Move the existing server LRU helpers and their tests to twenty-shared/utils/cache, update the four server consumers, and reuse a bounded memoizer in the validation-rule parser. Cache capacity, recency, and cached-null behavior are preserved.
Extracted from #30498; targets main independently of #30518. This also adds coverage for memoizer eviction, falsy values, and failed computations.
Validation: 98 tests across 11 cache and validation-rule suites passed; scoped TypeScript check passed; repository Oxlint rules and formatting checks passed. Tests resolved shared source directly using an isolated Jest/SWC toolchain. Full workspace build/typecheck was not run.