first commit
This commit is contained in:
@@ -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 等方法签名
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user