Wang and CaIon
2de51a19e3
fix(cache): 修复用户和令牌缓存的 Redis 跨槽错误 ( #8218 )
...
* 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 >
2026-11-05 23:37:43 +08:00
..
2026-10-17 23:24:33 +08:00
2026-09-18 23:00:37 +08:00
2026-10-20 22:43:11 +08:00
2026-10-18 23:46:10 +08:00
2026-09-06 22:48:58 +08:00
2026-11-04 22:58:20 +08:00
2026-11-04 22:58:20 +08:00
2026-07-20 16:48:43 +08:00
2026-09-30 17:24:19 +08:00
2026-06-27 17:01:59 +08:00
2026-06-27 17:01:59 +08:00
2026-10-09 21:39:51 +08:00
2026-08-29 18:51:57 +08:00
2026-10-28 15:22:48 +08:00
2026-10-17 20:19:41 +08:00
2026-10-17 20:19:41 +08:00
2026-09-08 20:55:03 +08:00
2026-09-15 00:06:42 +08:00
2026-09-08 20:55:03 +08:00
2026-11-03 18:24:11 +08:00
2026-10-09 21:39:51 +08:00
2026-06-27 17:03:25 +08:00
2026-09-06 22:48:59 +08:00
2026-06-22 18:41:26 +08:00
2026-09-06 22:49:00 +08:00
2026-07-20 16:48:43 +08:00
2026-07-20 16:48:43 +08:00
2026-09-06 22:48:59 +08:00
2026-07-20 16:48:43 +08:00
2026-10-09 21:39:51 +08:00
2026-08-30 20:06:32 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-09-11 21:44:54 +08:00
2026-07-07 12:40:09 +08:00
2026-07-07 12:40:09 +08:00
2026-09-08 20:55:03 +08:00
2026-09-08 20:55:03 +08:00
2026-10-09 21:39:51 +08:00
2026-10-20 15:42:31 +08:00
2026-09-18 23:00:37 +08:00
2026-10-09 21:39:51 +08:00
2026-08-13 22:06:40 +08:00
2026-09-12 19:33:53 +08:00
2026-09-12 19:33:53 +08:00
2025-08-10 12:11:31 +08:00
2025-08-11 14:40:01 +08:00
2026-09-08 17:03:10 +08:00
2026-09-06 22:49:02 +08:00
2026-05-21 11:16:17 +08:00
2026-11-05 22:15:39 +08:00
2026-10-22 22:41:17 +08:00
2026-08-01 23:19:01 +08:00
2026-10-09 21:39:51 +08:00
2026-09-07 22:38:09 +08:00
2026-10-19 20:22:37 +08:00
2026-09-11 23:15:29 +08:00
2026-10-09 21:39:51 +08:00
2026-08-29 20:11:36 +08:00
2026-08-26 20:57:54 +08:00
2026-10-10 19:24:32 +08:00
2026-09-12 18:43:18 +08:00
2026-09-12 18:43:18 +08:00
2026-09-08 20:55:03 +08:00
2026-09-06 22:49:02 +08:00
2026-07-27 15:56:21 +08:00
2025-08-10 12:11:31 +08:00
2026-11-05 22:15:39 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-10-09 21:39:51 +08:00
2026-09-18 11:24:29 +08:00
2026-09-18 11:24:29 +08:00
2025-04-03 18:57:15 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-07-07 21:22:49 +08:00
2026-09-18 11:24:30 +08:00
2026-09-18 11:24:30 +08:00
2026-09-30 17:24:19 +08:00
2026-10-30 21:28:16 +08:00
2026-08-29 18:51:57 +08:00
2026-10-17 23:24:33 +08:00
2026-08-29 18:51:57 +08:00
2026-09-21 21:01:16 +08:00
2026-09-20 17:58:45 +08:00
2026-10-13 21:39:52 +08:00
2026-11-05 23:37:43 +08:00
2026-08-31 11:51:59 +08:00
2026-08-31 11:51:59 +08:00
2026-11-04 22:58:20 +08:00
2026-10-09 21:39:51 +08:00
2026-09-06 22:48:59 +08:00
2026-11-03 15:17:44 +08:00
2026-06-20 18:57:47 +08:00
2026-06-20 18:57:47 +08:00
2026-06-22 18:41:26 +08:00
2026-10-20 15:42:31 +08:00
2026-10-09 21:39:51 +08:00
2026-11-05 23:37:43 +08:00
2026-11-03 15:17:44 +08:00
2026-11-05 23:37:43 +08:00
2026-11-04 22:58:20 +08:00
2026-06-18 12:16:23 +08:00
2026-07-17 19:36:44 +08:00
2026-10-09 21:39:51 +08:00
2026-09-06 22:48:58 +08:00
2026-09-08 20:55:03 +08:00
2026-11-04 22:58:20 +08:00
2026-09-30 20:52:36 +08:00
2026-11-04 22:58:20 +08:00
2026-10-09 21:39:51 +08:00
2026-09-06 22:49:02 +08:00
2026-09-06 22:49:02 +08:00