Skip to content

feat: cache Allbridge SDK instance and chainDetailsMap/token info wit…#223

Merged
Lex-Studios merged 1 commit intoLex-Studios:mainfrom
marvelousufelix:feat/sdk-caching
Mar 30, 2026
Merged

feat: cache Allbridge SDK instance and chainDetailsMap/token info wit…#223
Lex-Studios merged 1 commit intoLex-Studios:mainfrom
marvelousufelix:feat/sdk-caching

Conversation

@marvelousufelix
Copy link
Copy Markdown
Contributor

closes #128
…h 5-min TTL

  • Cache SDK instance at module level (singleton, no re-init cost)
  • Cache chainDetailsMap() result for 5 minutes
  • Cache token info (getAllbridgeTokens) for 5 minutes
  • Invalidate all caches on any SDK error
  • Add allbridge-adapter.test.ts covering singleton, TTL expiry, error invalidation

…h 5-min TTL

- Cache SDK instance at module level (singleton, no re-init cost)
- Cache chainDetailsMap() result for 5 minutes
- Cache token info (getAllbridgeTokens) for 5 minutes
- Invalidate all caches on any SDK error
- Add allbridge-adapter.test.ts covering singleton, TTL expiry, error invalidation
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 30, 2026

@marvelousufelix Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Lex-Studios Lex-Studios merged commit a33a9e9 into Lex-Studios:main Mar 30, 2026
0 of 2 checks passed
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.

API: Implement in-memory SDK singleton caching

2 participants