init
This commit is contained in:
8
cool-admin-java/cool-admin.iml
Normal file
8
cool-admin-java/cool-admin.iml
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module version="4">
|
||||
<component name="AdditionalModuleElements">
|
||||
<content url="file://$MODULE_DIR$" dumb="true">
|
||||
<sourceFolder url="file://$MODULE_DIR$/target/generated-sources/annotations" isTestSource="false" />
|
||||
</content>
|
||||
</component>
|
||||
</module>
|
@@ -5,8 +5,6 @@ import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.cool.core.util.ConvertUtil;
|
||||
import jakarta.annotation.PostConstruct;
|
||||
import java.time.Duration;
|
||||
import java.util.Arrays;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.autoconfigure.cache.CacheType;
|
||||
@@ -17,6 +15,9 @@ import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.cache.RedisCacheWriter;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.Duration;
|
||||
import java.util.Arrays;
|
||||
|
||||
/**
|
||||
* 缓存工具类
|
||||
*/
|
||||
@@ -174,7 +175,7 @@ public class CoolCache {
|
||||
cache.put(key, value);
|
||||
} else if (type.equalsIgnoreCase(CacheType.REDIS.name())) {
|
||||
redisCache.put(cacheName, key.getBytes(), ObjectUtil.serialize(value),
|
||||
java.time.Duration.ofSeconds(ttl));
|
||||
Duration.ofSeconds(ttl));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,7 @@
|
||||
package com.cool.core.plugin.event;
|
||||
|
||||
public enum PluginActionEnum {
|
||||
INSTALL,
|
||||
UNINSTALL,
|
||||
UPDATE,
|
||||
}
|
@@ -1,8 +1,8 @@
|
||||
✨🌈✨[cool-admin-java-plus](https://gitee.com/hlc4417/cool-admin-java-plus)✨🌈✨
|
||||
✨🌈✨===================================================================================✨🌈✨
|
||||
______ ___ ___ _____ _ ______ ____ ____ _____ ____ _____
|
||||
.' ___ | .' `. .' `.|_ _| V8.x / \ |_ _ `.|_ \ / _||_ _||_ \|_ _|
|
||||
/ .' \_|/ .-. \/ .-. \ | | ______ / _ \ | | `. \ | \/ | | | | \ | |
|
||||
| | | | | || | | | | | _|______|/ ___ \ | | | | | |\ /| | | | | |\ \| |
|
||||
\ `.___.'\\ `-' /\ `-' /_| |__/ | _/ / \ \_ _| |_.' /_| |_\/_| |_ _| |_ _| |_\ |_
|
||||
`.____ .' `.___.' `.___.'|________| |____| |____||______.'|_____||_____||_____||_____|\____|
|
||||
:: https://java.cool-admin.com ::
|
||||
✨🌈✨===================================================================================✨🌈✨
|
Reference in New Issue
Block a user