Skip to content

Instantly share code, notes, and snippets.

@matthewfrank
Last active May 27, 2017 14:22
@CacheEvict(value = "post-single", key = "#id")
@DeleteMapping("/delete/{id}")
public void deletePostByID(@PathVariable String id) throws PostNotFoundException {
log.info("delete post with id {}", id);
postService.deletePost(id);
}
@CacheEvict(value = "post-top")
@GetMapping("/top/evict")
public void evictTopPosts() {
log.info("Evict post-top");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment