@Controller @RequestMapping(value="cache") public class CacheRest extends Object
@RequestMapping(path="/pre/{pre:.*}",
method=GET)
@ResponseBody
public List<CacheTree> listPre(@PathVariable(value="pre")
String pre)
@RequestMapping(path="/{key:.*}",
method=GET)
@ResponseBody
public String get(@PathVariable(value="key")
String key)
@RequestMapping(path="/remove",
method=DELETE)
@ResponseBody
public void removeAll()
@RequestMapping(path="/pre/{pre:.*}",
method=DELETE)
@ResponseBody
public void removePre(@PathVariable(value="pre")
String pre)
@RequestMapping(path="/{key:.*}",
method=DELETE)
@ResponseBody
public void removeKey(@PathVariable(value="key")
String key)
@RequestMapping(path="/{key:.*}",
method=PUT)
@ResponseBody
public void updateTime(@PathVariable(value="key")
String key,
int hour)
@RequestMapping(value="") public String index()
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.