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

add more MemoryCache benchmarks #1606

Merged
merged 4 commits into from
Dec 2, 2020

Conversation

adamsitnik
Copy link
Member

No description provided.

Copy link
Member

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

LGTM

cache.Remove(item.key);
}
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Should we add a SlidingExpiration test as well? The above test is for absoluteExpirationRelativeToNow AFAICT.

Copy link
Member Author

Choose a reason for hiding this comment

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

@eerhardt we should, thanks for pointing this out! I could not find an extension method that would allow for setting SlidingExpiration so I've changed all the benchmarks to use the using pattern for adding the entries (used by the extension methods)

@adamsitnik
Copy link
Member Author

the CI failures are not related to this change, I am merging

@adamsitnik adamsitnik merged commit a6e309b into dotnet:master Dec 2, 2020
@adamsitnik adamsitnik deleted the moreMemoryCacheBenchmarks branch December 2, 2020 12:53
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