It doesn't seem like you can reference the returned object:
http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/cache.html#cache-spel-context
But why do you need this? You can refer to arguments in the key value @CacheEvict, for example:
@CacheEvict(value = CACHE_BY_ID, key = "#userID")
public T delete(AppID appID, UserID userID) throws UserNotFoundException {
...
}
More sample code in response to the answer below about the need to evict from several caches using several properties of the User object:
@Caching(evict = {
@CacheEvict(value = CACHE_BY_ID, key = "#user.userID"),
@CacheEvict(value = CACHE_BY_LOGIN_NAME, key = "#user.loginName")
})
public T delete(AppID appID, User user) throws UserNotFoundException {
...
}