Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/noear/solon into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed Jul 28, 2023
2 parents 559f678 + f3a4c17 commit b0637c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public Object get(String key) {
}

@Override
public <T> T getOrStore(String key, int seconds, Supplier supplier) {
public <T> T getOrStore(String key, int seconds, Supplier<T> supplier) {
return (T) client.get(key, (k) -> supplier.get());
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public interface CacheService {
*
* @since 1.7
*/
default <T> T getOrStore(String key, int seconds, Supplier supplier) {
default <T> T getOrStore(String key, int seconds, Supplier<T> supplier) {
Object obj = get(key);
if (obj == null) {
obj = supplier.get();
Expand Down

0 comments on commit b0637c1

Please sign in to comment.