|  |  |  | 
|---|
|  |  |  | import com.matrix.core.constance.MatrixConstance; | 
|---|
|  |  |  | import com.matrix.core.pojo.AjaxResult; | 
|---|
|  |  |  | import com.matrix.core.web.BaseAction; | 
|---|
|  |  |  | import com.matrix.system.common.init.InitWebContainer; | 
|---|
|  |  |  | import com.matrix.system.common.init.LocalCache; | 
|---|
|  |  |  | import org.springframework.stereotype.Controller; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.PathVariable; | 
|---|
|  |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping("/getLocalCache") | 
|---|
|  |  |  | public @ResponseBody AjaxResult getLocalCache(String key) { | 
|---|
|  |  |  | Object cache=InitWebContainer.getLocalCache(key); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(cache); | 
|---|
|  |  |  | return AjaxResult.buildSuccessInstance(LocalCache.getValues(key)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|