Skip to content

Commit

Permalink
upgrade cache2k version
Browse files Browse the repository at this point in the history
  • Loading branch information
skublik committed Jun 22, 2021
1 parent e326671 commit eba80d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
<slf4j.version>1.7.30</slf4j.version>
<logback.version>1.2.3e1</logback.version>
<spring.security.saml2.version>2.0.0.M30</spring.security.saml2.version>
<cache2k.version>1.2.1.Final</cache2k.version>
<cache2k.version>2.0.0.Final</cache2k.version>
<testng.version>7.3.0</testng.version>
<xml.resolver.version>1.2</xml.resolver.version>
<xmlunit.version>2.8.2</xmlunit.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ long getCapacity() {
long getExpiryTime(Class<?> type) {
CacheObjectTypeConfiguration configuration = getConfiguration(type);
if (configuration == null) {
return Expiry.NO_CACHE;
return Expiry.NOW;
} else if (configuration.getEffectiveTimeToLive() != null) {
return System.currentTimeMillis() + configuration.getEffectiveTimeToLive() * 1000L;
} else {
Expand Down

0 comments on commit eba80d1

Please sign in to comment.