Skip to content

feature(issue-78): Add second level cache support for hibernate#87

Merged
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
Norphy:feature/issue-78_Add-second-level-cache-for-Hibernate
Mar 7, 2025
Merged

feature(issue-78): Add second level cache support for hibernate#87
haiphucnguyen merged 1 commit intoflowinquiry:mainfrom
Norphy:feature/issue-78_Add-second-level-cache-for-Hibernate

Conversation

@Norphy
Copy link
Copy Markdown
Contributor

@Norphy Norphy commented Mar 2, 2025

Description

This PR implements issue #78. It introduces second level caching for Hibernate. In order to reduce calls to the DB, second level caching is introduced to reduce stress on the DB and reduce latency. There are two cache providers, Caffeine by default and Redis an optional alternative.

Changes Made

  • Add Entity second level
  • Add a property in order to control the hibernate second level cache providers: flowinquiry.hibernate.second_level_cache.provider
    • Possible values: {caffeine, redis}. Caffeine is chosen by default, even in absence of this property.
  • Add a list of properties to control redis client configuration
  • Add unit test

Additional Notes

N/A

Copy link
Copy Markdown
Collaborator

@haiphucnguyen haiphucnguyen left a comment

Choose a reason for hiding this comment

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

Thank you @Norphy for your contribution

@haiphucnguyen haiphucnguyen merged commit 27f74a2 into flowinquiry:main Mar 7, 2025
2 checks passed
haiphucnguyen added a commit that referenced this pull request Apr 4, 2025
@Norphy Norphy deleted the feature/issue-78_Add-second-level-cache-for-Hibernate branch May 22, 2025 12:49
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