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

couchbase: enable cache in sample #28040

Merged
merged 8 commits into from
Dec 3, 2024
Merged

couchbase: enable cache in sample #28040

merged 8 commits into from
Dec 3, 2024

Conversation

mshima
Copy link
Member

@mshima mshima commented Dec 1, 2024


Please make sure the below checklist is followed for Pull Requests.

When you are still working on the PR, consider converting it to Draft (below reviewers) and adding skip-ci label, you can still see CI build result at your branch.

@DanielFran
Copy link
Member

DanielFran commented Dec 1, 2024

📊 SonarQube Analysis for ng-default

Metric Value
Total Violations 13
New Vulnerabilities 0
New Bugs 0
New Code smells 0
Coverage on New Code 100.0%
Duplication on New Code 0.0%

@@ -1097,9 +1097,9 @@ public class UserService {
<%_ if (cacheProviderAny && !databaseTypeNo) { _%>

private void clearUserCaches(<%= user.persistClass %> user) {
Objects.requireNonNull(cacheManager.getCache(UserRepository.USERS_BY_LOGIN_CACHE)).evict(user.getLogin());
Objects.requireNonNull(cacheManager.getCache(UserRepository.USERS_BY_LOGIN_CACHE)).evictIfPresent(user.getLogin());
Copy link
Member Author

Choose a reason for hiding this comment

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

evict schedules while evictIfPresent doesn't.

@mshima mshima marked this pull request as ready for review December 3, 2024 17:17
@DanielFran DanielFran merged commit 6e4c6da into main Dec 3, 2024
71 checks passed
@DanielFran DanielFran deleted the couchbase branch December 3, 2024 19:09
@mraible mraible added this to the 8.8.0 milestone Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants