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

Implement expirable LRU cache and config settings for EVM calls #223

Merged
merged 2 commits into from
Sep 18, 2024

Conversation

wanliqun
Copy link
Contributor

@wanliqun wanliqun commented Sep 18, 2024

  • Introduce an expirable LRU cache to handle EVM call results
  • Adding unit testing for the expirable LRU cache with mock fake time support
  • Allow cache parameters (expiration times, sizes) to be set via configuration

This change is Reviewable

- Introduce an expirable LRU cache to handle EVM call results
- Adding unit testing for the expirable LRU cache with mock fake time support
- Allow cache parameters (expiration times, sizes) to be set via configuration
@wanliqun wanliqun changed the title Implement expirable LRU cache and config settings for ETH calls Implement expirable LRU cache and config settings for EVM calls Sep 18, 2024
@wanliqun wanliqun requested a review from boqiu September 18, 2024 07:06
Copy link
Contributor

@boqiu boqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 11 of 11 files at r1, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @wanliqun)


rpc/cache/cache_eth.go line 41 at r1 (raw file):

}

func Init() {

Better to rename to MustInitFromViper

Copy link
Contributor Author

@wanliqun wanliqun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 8 of 11 files reviewed, 1 unresolved discussion (waiting on @boqiu)


rpc/cache/cache_eth.go line 41 at r1 (raw file):

Previously, boqiu (Bo QIU) wrote…

Better to rename to MustInitFromViper

Done.

Copy link
Contributor

@boqiu boqiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 3 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @wanliqun)

@wanliqun wanliqun merged commit 56bd77b into main Sep 18, 2024
2 checks passed
@wanliqun wanliqun deleted the add-eth-call-cache branch September 18, 2024 07:35
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