Springが管理するキャッシュ(Spring 3.1の抽象化)のエントリを削除しようとしています。
アノテーションの「key」プロパティの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);
}
これを行う方法はありますか?