BoostryJP / ibet-Prime

Advanced API Toolkit for Digital Securities Issuance and Management on the ibet Network 🚀
https://ibet.jp/ibet-for-fin
Apache License 2.0
11 stars 1 forks source link

[FEATURE] Keep `token_cache` data up to date to prevent it from becoming stale #576

Closed purplesmoke05 closed 9 months ago

purplesmoke05 commented 10 months ago

Is your feature request related to a problem? Please describe.

Currently, token attribute values are stored in token_cache table and are refreshed from the blockchain data when the cache's TTL expires. If API container is down for long period, the TTL for all cache records will expire. Consequently, after restarting the container, requests to the following APIs may take a long time due to the need to retrieve and refresh cache.

Describe the solution you'd like

Refreshing data targeted by token_cache regularly or so to mitigate response delays for these API requests.