first commit

This commit is contained in:
yangzhaohan
2026-06-22 15:52:26 +08:00
commit 2f552baa5f
11 changed files with 205 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>{{groupId}}</groupId>
<artifactId>{{projectName}}-common-cache</artifactId>
<version>0.0.0</version>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.4.0</version>
<relativePath/>
</parent>
<properties>
<java.version>{{javaVersion}}</java.version>
</properties>
<dependencies>
<dependency>
<groupId>{{groupId}}</groupId>
<artifactId>{{projectName}}-common-core</artifactId>
<version>0.0.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
</dependencies>
</project>
@@ -0,0 +1,13 @@
package {{basePackage}}.cache;
/**
* 缓存 Key 构造器,禁止裸字符串拼接。
*/
public final class CacheKey {
private CacheKey() {
}
// TODO: 提供静态工厂方法构造带命名空间的缓存 Key
}
@@ -0,0 +1,10 @@
package {{basePackage}}.cache;
/**
* 统一缓存访问入口,屏蔽底层缓存实现。
*/
public interface CacheService {
// TODO: get / set / delete / exists 等方法签名
}