1
これで春ブートソースコード:キャッシュ一つだけのキャッシュの春ブーツguavaCacheManager cacheNameを指定-キャッシュ
/**
* Create a native Guava Cache instance for the specified cache name.
* @param name the name of the cache
* @return the native Guava Cache instance
*/
protected com.google.common.cache.Cache<Object, Object> createNativeGuavaCache(String name) {
if (this.cacheLoader != null) {
return this.cacheBuilder.build(this.cacheLoader);
}
else {
return this.cacheBuilder.build();
}
}
すべての名前 がどのように私は2つの異なるキャッシュを作成するのですか?
申し訳ありませんが、私の問題は次のとおりです。期限切れキャッシュと無期限チャーチを作成したい –