嗨,我想知道是否有可能在Scala中利用Spring註釋緩存。我已經嘗試過,但正在接收下面的錯誤。我從一個依賴於scala包的java包運行應用程序。 No cache could be resolved for 'CacheableOperation[public scala.collection.immutable.List MerchantDataGateway.getAllMerchant
我有兩種方法來獲取具有兩個不同參數的實體。我也有一個使用這些參數之一的保存方法。如何從兩個提取鍵下的緩存中驅逐實體?例如見下: @Cacheable
public User getByUsername(String username);
@Cacheable
public User getByEmail(String email);
@CacheEvict(key="#entity.
目前我正在使用Spring緩存和@Cacheable/@CacheEvict註釋。 我想獲得某種類似"INFO: i got those values from the cache, NOT from the host. awesome" 有一個清潔,簡單的方法來做到這一點控制檯日誌語句的?我們正在使用slf4j明顯btw,如果這是任何利益。