提交 4b075ae0 编写于 作者: X xiongchun

编写文档

上级 6cd4e72a
......@@ -23,6 +23,9 @@
2. 使用MybatisPlus的API接口操作数据库的常用方法
3. 分页查询和手工映复杂SQL的方法
- **pangu-examples-cache-layering**
1. 如何使用两级缓存(本地缓存+Redis集中缓存)。
- **pangu-examples-dubbo-api**
1. 开发Dubbo服务时接口文件和POJO相关类的打包模块
......
package com.gitee.pulanos.pangu.showcases.cache.layering.service;
import cn.hutool.core.thread.ThreadUtil;
import com.github.xiaolyuh.cache.LayeringCache;
import com.github.xiaolyuh.manager.CacheManager;
import com.github.xiaolyuh.setting.FirstCacheSetting;
......@@ -35,7 +36,7 @@ public class ApiBasedDemoService {
String cacheKey = "10";
LayeringCache cache = (LayeringCache) cacheManager.getCache(cacheName, layeringCacheSetting);
cache.put(cacheKey, "test");
cache.get(cacheKey, String.class);
log.info(cache.get(cacheKey, String.class));
//cache.evict(cacheKey);
//cache.clear();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册