You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple file cache containing the list of polkadot-sdk and orml crates version stored somewhere in the HOME directory is needed so that the user doesn't have to wait each time they want to list the versions. A boolean flag --cache can be implemented to allow the user to choose if they want to fetch the list from the cached data or they want to fetch it fresh from the GitHub API or CLI, and --update-cache flag to update the cache with a latest fetch from GitHub.
The text was updated successfully, but these errors were encountered:
@ggwpez This PR #28 adds a local caching mechanism that reduces the fetch time of polkadot-sdk versions exponentially(the list is fetched instantly from the cache). This improvement in time is more than substantial as originally GitHub API/CLI takes about 6-8 seconds to fetch and there is the issue of setting up gh CLI and authenticating it once the rate limit is hit.
This PR provides a seamless way of fetching the versions from the local cache without having to wait or worrying about hitting the rate limit.
A simple file cache containing the list of polkadot-sdk and orml crates version stored somewhere in the HOME directory is needed so that the user doesn't have to wait each time they want to list the versions. A boolean flag
--cache
can be implemented to allow the user to choose if they want to fetch the list from the cached data or they want to fetch it fresh from the GitHub API or CLI, and--update-cache
flag to update the cache with a latest fetch from GitHub.The text was updated successfully, but these errors were encountered: