Hi everybody! I want to add cache function to the web services.It's my code
@GET
@Path("/bookCategory")
@Produces(MediaType.APPLICATION_XML)
public List<EBookCategory> bookCategory() {
List<EBookCategory> categorys=...get from db;
return categorys;
}
but I don't want just cache the db result,I want to cache the final result(the
xml generate by wink),how can I do it?
I'm using memcached and Simple-Spring-Memcached to do it.
thanks!
2011-11-22
zhangpp
