-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added LocalExpirationMode enum to allow expire after update/read beha…
…vior (#24) * added LocalExpirationMode enum to allow expire after update/read behavior * use ThreadLocalRandom and some cleanup * added javadoc * updated RandomizedLocalExpiry javadoc * added tests * bump version; added more comments
- Loading branch information
1 parent
cdb7ef8
commit 8720636
Showing
7 changed files
with
122 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ SONATYPE_AUTOMATIC_RELEASE=true | |
|
||
GROUP=io.github.suppierk | ||
POM_ARTIFACT_ID=spring-boot-multilevel-cache-starter | ||
VERSION_NAME=3.2.5.0 | ||
VERSION_NAME=3.2.5.1 | ||
POM_PACKAGING=jar | ||
|
||
POM_NAME=Spring Boot Multilevel Cache Starter | ||
|
@@ -45,4 +45,4 @@ POM_SCM_DEV_CONNECTION=scm:git:ssh://[email protected]/SuppieRK/spring-boot-multile | |
|
||
POM_DEVELOPER_ID=SuppieRK | ||
POM_DEVELOPER_NAME=Roman Khlebnov | ||
POM_DEVELOPER_URL=https://github.com/SuppieRK/ | ||
POM_DEVELOPER_URL=https://github.com/SuppieRK/ |
12 changes: 12 additions & 0 deletions
12
src/main/java/io/github/suppie/spring/cache/LocalExpirationMode.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.github.suppie.spring.cache; | ||
|
||
import com.github.benmanes.caffeine.cache.Expiry; | ||
|
||
public enum LocalExpirationMode { | ||
/** See {@link Expiry#expireAfterCreate(Object, Object, long)} */ | ||
AFTER_CREATE, | ||
/** See {@link Expiry#expireAfterUpdate(Object, Object, long, long)} */ | ||
AFTER_UPDATE, | ||
/** See {@link Expiry#expireAfterRead(Object, Object, long, long)} */ | ||
AFTER_READ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters