Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/token detail cache #7

Merged
merged 7 commits into from
Nov 8, 2023
Merged

Conversation

aristidesstaffieri
Copy link
Contributor

Adds a Redis workflow for storing/getting token details which are immutable once set. When a subscription is added, we attempt to fetch and store token details in Redis for faster access in subsequent queries. The new tokenDetails will return cached token details when found, otherwise will look them up on the ledger and cache them.

Adds first transformer, transformers are a type of helper that take Mercury responses(and sometimes other data) and transforms it into the desired response for the API route.

@aristidesstaffieri aristidesstaffieri merged commit e14c2d4 into main Nov 8, 2023
1 check passed
@aristidesstaffieri aristidesstaffieri deleted the feat/token-detail-cache branch November 8, 2023 20:02
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.

2 participants