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

fix(cache2k): create unbounded cache if maxSize is not specified #184

Merged
merged 1 commit into from Oct 8, 2023

Conversation

iProdigy
Copy link
Member

@iProdigy iProdigy commented Oct 8, 2023

When ICacheSpec#maxSize yields null, an unbounded cache should be created. By default, cache2k imposes an entryCapacity of 1802 (rather than creating an unbounded cache). As a result, we specify Long.MAX_VALUE to create an unbounded cache when maxSize is null, in accordance to the Xanthic spec.

https://cache2k.org/docs/latest/apidocs/cache2k-api/org/cache2k/Cache2kBuilder.html#entryCapacity(long)

@iProdigy iProdigy added the bug Something isn't working label Oct 8, 2023
@sonarcloud
Copy link

sonarcloud bot commented Oct 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@iProdigy iProdigy enabled auto-merge (squash) October 8, 2023 02:35
@iProdigy iProdigy merged commit bee091e into main Oct 8, 2023
4 checks passed
@PhilippHeuer PhilippHeuer deleted the fix/cache2k-unbounded branch October 8, 2023 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants