我试图逐出Spring管理的缓存(Spring 3.1抽象)中的条目。Spring 3.1缓存 - 如何使用SpEL中的返回值
我需要参考该方法的返回值在规划环境地政司的“钥匙”属性中的注释:
/* (How to refer to the 'T' returned value in the "KEY_ID"?) */
@Caching(evict = { @CacheEvict(value = CACHE_BY_ID, key = KEY_ID) })
public T delete(AppID appID, UserID userID) throws UserNotFoundException {
return inner.delete(appID, userID);
}
有没有办法做到这一点?
在http://www.infoq.com/presentations/Spring-Security-3(at 1:04:00),Wiesner使用filterObject作为返回值的句柄,但这可能只是一个Spring Security句柄。值得一试我猜。 –
你还不能看到[SPR-8871](https://jira.springsource.org/browse/SPR-8871)并参与其中。 –