Skip to content

Commit

Permalink
add cache default properties
Browse files Browse the repository at this point in the history
  • Loading branch information
avdev4j committed Nov 18, 2020
1 parent 6801d0e commit 092b46a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
limitations under the License.
-%>
## configure your caches
quarkus.cache.type=<%= cacheProvider %>
quarkus.cache.enabled=true
<%_ if (cacheProvider === 'caffeine') { _%>
quarkus.cache.caffeine."usersByEmail".maximum-size=<%= CACHE_MAXIMUM_SIZE %>
quarkus.cache.caffeine."usersByEmail".expire-after-write=<%= CACHE_EXPIRE_AFTER_WRITE %>
Expand Down
5 changes: 5 additions & 0 deletions test/server.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ describe('Subgenerator server of quarkus JHipster blueprint', () => {
);
});

it('Quarkus caffeine cache is enabled', () => {
assert.fileContent(`${SERVER_MAIN_RES_DIR}application.properties`, 'quarkus.cache.enabled=true');
assert.fileContent(`${SERVER_MAIN_RES_DIR}application.properties`, 'quarkus.cache.type=caffeine');
});

it('User and Authority cache properties are set', () => {
assert.fileContent(
`${SERVER_MAIN_RES_DIR}application.properties`,
Expand Down

0 comments on commit 092b46a

Please sign in to comment.