Consider the following:
@CachePut uses the method return value as the value to insert into the cache. Is it somehow possible to tell it to use the order method argument instead? If not, using Spring caching is a show stopper as many of my add/update operations return void.
@CachePut(value="orders", key="#order.orderId") public void addOrder(Order order)