提交 74c1f7ef 编写于 作者: L lsyf

ehcache-2.x-scenario add EhcacheCloneInterceptor case

上级 54c1cd5c
......@@ -35,7 +35,14 @@ public class CaseServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
Cache cache = cacheManager.getCache("testCache");
Cache originCache = cacheManager.getCache("testCache");
// EhcacheCloneInterceptor
Cache cache = null;
try {
cache = originCache.clone();
} catch (CloneNotSupportedException e) {
}
String objectKey = "dataKey";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册