Skip to content

refactor: migrate in-memory token caches to Redis with memory fallback#329

Open
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/redis-token-cache
Open

refactor: migrate in-memory token caches to Redis with memory fallback#329
nap-liu wants to merge 1 commit intodataelement:mainfrom
nap-liu:pr/redis-token-cache

Conversation

@nap-liu
Copy link
Copy Markdown

@nap-liu nap-liu commented Apr 8, 2026

Summary

  • New token_cache.py: Redis-backed cache with automatic in-memory fallback
  • Migrated: Teams, Feishu, WeCom, DingTalk org sync token caches
  • TTL-based expiry with early-refresh buffers
  • Enables multi-instance deployments to share token state

Test plan

  • Backend smoke test passed
  • All 6 token caches verified migrated with correct TTLs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant