public class CacheInterceptor extends Object implements Interceptor
Constructor and Description |
---|
CacheInterceptor() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildCacheKey(Invocation inv,
Controller controller) |
protected String |
buildCacheName(Invocation inv,
Controller controller) |
protected void |
cacheAction(String cacheName,
String cacheKey,
Controller controller) |
protected RenderInfo |
createRenderInfo(Render render)
通过继承 CacheInterceptor 并覆盖此方法支持更多类型的 Render
|
void |
intercept(Invocation inv) |
protected void |
useCacheDataAndRender(Map<String,Object> cacheData,
Controller controller) |
public final void intercept(Invocation inv)
intercept
in interface Interceptor
protected String buildCacheName(Invocation inv, Controller controller)
protected String buildCacheKey(Invocation inv, Controller controller)
protected RenderInfo createRenderInfo(Render render)
protected void cacheAction(String cacheName, String cacheKey, Controller controller)
protected void useCacheDataAndRender(Map<String,Object> cacheData, Controller controller)
Copyright © 2018. All rights reserved.