* fix(cache): colocate user and token auth keys in Redis slots
Use shared hash tags for cache hashes and authentication fences. Add regression coverage for matching tags and document coordinated rollout requirements.
AI-assisted implementation and tests.
* fix(cache): keep cache key names and tag fences with them
Renaming user:<id> and token:<hash> split quota counters and
invalidations between old and new nodes during a rolling upgrade.
Keep those names and tag the fence and version keys with the cache
key instead, so each script still touches a single slot.
---------
Co-authored-by: CaIon <i@caion.me>
* fix(auth): verify Redis authentication cache integrity
* fix(auth): repair auth cache hashes with unreadable fields
A token cache hash with a field that cannot be parsed, or with a stray
DeletedAt field, fell back to the database on every request and was
never rewritten. Repairs now read the stored signature on its own,
drop DeletedAt, and replace quota counters that are not integers in
both the token and user caches. Valid counters are still kept.