インターフェースの使用
org.springframework.cache.Cache
Cache を使用するパッケージ
パッケージ
説明
Spring の汎用キャッシュ抽象化。
Caffeine ライブラリのオープンソースキャッシュのクラスをサポートし、Spring のキャッシュ抽象化内で Caffeine キャッシュをセットアップできます。
java.util.concurrent ベースのキャッシュの実装パッケージ。 宣言的キャッシング境界設定のための AOP ベースのソリューション。
JSR-107(javax.cache、別名 "JCache" )ベースのキャッシュの実装パッケージ。
org.springframework.cache パッケージのサポートクラス。
org.springframework.cache パッケージのトランザクション対応デコレーター。
Spring WebFlux 構成インフラストラクチャ。
静的リソースを提供するためのサポートクラス。
Spring MVC のアノテーションベースのセットアップ。
静的リソースを提供するためのサポートクラス。
org.springframework.cache 内の Cache 使用
Cache を返す org.springframework.cache のメソッドorg.springframework.cache.caffeine 内の Cache 使用
Cache を実装している org.springframework.cache.caffeine のクラスCache を返す org.springframework.cache.caffeine のメソッド修飾子と型メソッド説明protected CacheCaffeineCacheManager.adaptCaffeineCache(StringSE name, com.github.benmanes.caffeine.cache.AsyncCache<ObjectSE, ObjectSE> cache) 指定された新しい Caffeine AsyncCache インスタンスを、指定されたキャッシュ名の Spring のCache抽象化に適合させます。protected CacheCaffeineCacheManager.adaptCaffeineCache(StringSE name, com.github.benmanes.caffeine.cache.Cache<ObjectSE, ObjectSE> cache) 指定された新しいネイティブ Caffeine キャッシュインスタンスを、指定されたキャッシュ名の Spring のCache抽象化に適合させます。protected CacheCaffeineCacheManager.createCaffeineCache(StringSE name) このキャッシュマネージャーで指定された共通の Caffeine 構成を使用して、指定されたキャッシュ名の共通のCaffeineCacheインスタンスを構築します。org.springframework.cache.concurrent 内の Cache 使用
Cache を実装している org.springframework.cache.concurrent のクラスCache を返す org.springframework.cache.concurrent のメソッドorg.springframework.cache.interceptor 内の Cache 使用
型 Cache の引数を持つ型を返す org.springframework.cache.interceptor のメソッド修飾子と型メソッド説明protected CollectionSE<? extends Cache> CacheAspectSupport.CacheOperationContext.getCaches()protected CollectionSE<? extends Cache> CacheAspectSupport.getCaches(CacheOperationInvocationContext<CacheOperation> context, CacheResolver cacheResolver) CollectionSE<? extends Cache> AbstractCacheResolver.resolveCaches(CacheOperationInvocationContext<?> context) CollectionSE<? extends Cache> CacheResolver.resolveCaches(CacheOperationInvocationContext<?> context) 指定された呼び出しに使用するキャッシュを返します。型 Cache のパラメーターを持つ org.springframework.cache.interceptor のメソッド修飾子と型メソッド説明protected voidprotected voidprotected @Nullable Cache.ValueWrapper指定されたCacheでget(Object)を実行し、例外が発生した場合はエラーハンドラーを呼び出します。protected <T> @Nullable TAbstractCacheInvoker.doGet(Cache cache, ObjectSE key, CallableSE<T> valueLoader) 指定されたCacheでget(Object, Callable)を実行し、例外が発生した場合はエラーハンドラーを呼び出します。protected void指定されたCacheでput(Object, Object)を実行し、例外が発生した場合はエラーハンドラーを呼び出します。protected @Nullable CompletableFutureSE<?> AbstractCacheInvoker.doRetrieve(Cache cache, ObjectSE key) 指定されたCacheでretrieve(Object)を実行し、例外が発生した場合はエラーハンドラーを呼び出します。protected <T> CompletableFutureSE<T> AbstractCacheInvoker.doRetrieve(Cache cache, ObjectSE key, SupplierSE<CompletableFutureSE<T>> valueLoader) 指定されたCacheでretrieve(Object, Supplier)を実行し、例外が発生した場合はエラーハンドラーを呼び出します。voidCacheErrorHandler.handleCacheClearError(RuntimeExceptionSE exception, Cache cache) 指定されたCacheをクリアするときに、キャッシュプロバイダーによってスローされた特定のランタイム例外を処理します。これは、致命的な例外として再スローされる可能性があります。voidLoggingCacheErrorHandler.handleCacheClearError(RuntimeExceptionSE exception, Cache cache) voidSimpleCacheErrorHandler.handleCacheClearError(RuntimeExceptionSE exception, Cache cache) voidCacheErrorHandler.handleCacheEvictError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) 指定されたkeyでアイテムをクリアするときに、キャッシュプロバイダーによってスローされた特定の実行時例外を処理します。致命的な例外として再スローされる可能性があります。voidLoggingCacheErrorHandler.handleCacheEvictError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) voidSimpleCacheErrorHandler.handleCacheEvictError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) voidCacheErrorHandler.handleCacheGetError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) 指定されたkeyでアイテムを取得するときにキャッシュプロバイダーによってスローされた特定の実行時例外を処理します。致命的な例外として再スローされる可能性があります。voidLoggingCacheErrorHandler.handleCacheGetError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) voidSimpleCacheErrorHandler.handleCacheGetError(RuntimeExceptionSE exception, Cache cache, ObjectSE key) voidCacheErrorHandler.handleCachePutError(RuntimeExceptionSE exception, Cache cache, ObjectSE key, @Nullable ObjectSE value) 指定されたkeyおよびvalueでアイテムを更新するときにキャッシュプロバイダーによってスローされた特定のランタイム例外を処理し、致命的な例外として再スローする可能性があります。voidLoggingCacheErrorHandler.handleCachePutError(RuntimeExceptionSE exception, Cache cache, ObjectSE key, @Nullable ObjectSE value) voidSimpleCacheErrorHandler.handleCachePutError(RuntimeExceptionSE exception, Cache cache, ObjectSE key, @Nullable ObjectSE value) org.springframework.cache.jcache 内の Cache 使用
Cache を実装している org.springframework.cache.jcache のクラスCache を返す org.springframework.cache.jcache のメソッド型 Cache の引数を持つ型を返す org.springframework.cache.jcache のメソッドorg.springframework.cache.support 内の Cache 使用
Cache を実装している org.springframework.cache.support のクラス修飾子と型クラス説明class基になるストアに渡す前にnull値(および場合によっては他のそのような特別な値)を適応させる必要があるCache実装の共通基本クラス。classキャッシュを無効にするのに適した操作なしのCache実装。Cache を返す org.springframework.cache.support のメソッド修飾子と型メソッド説明protected CacheAbstractCacheManager.decorateCache(Cache cache) 必要に応じて、指定された Cache オブジェクトを装飾します。この実装は、常にアイテムを格納しないCache実装を返します。AbstractCacheManager.getMissingCache(StringSE name) 指定されたnameまたはnullで不足しているキャッシュを返します。そのようなキャッシュが存在しないか、オンデマンドで作成できなかった場合。AbstractCacheManager.lookupCache(StringSE name) 指定された名前の登録済みキャッシュを確認します。型 Cache の引数を持つ型を返す org.springframework.cache.support のメソッド修飾子と型メソッド説明protected abstract CollectionSE<? extends Cache> AbstractCacheManager.loadCaches()このキャッシュマネージャーの初期キャッシュをロードします。protected CollectionSE<? extends Cache> SimpleCacheManager.loadCaches()型 Cache のパラメーターを持つ org.springframework.cache.support のメソッド修飾子と型メソッド説明protected CacheAbstractCacheManager.decorateCache(Cache cache) 必要に応じて、指定された Cache オブジェクトを装飾します。型 Cache の型引数を持つ org.springframework.cache.support のメソッドパラメーター修飾子と型メソッド説明voidSimpleCacheManager.setCaches(CollectionSE<? extends Cache> caches) この CacheManager に使用するキャッシュインスタンスのコレクションを指定します。org.springframework.cache.transaction 内の Cache 使用
Cache を実装している org.springframework.cache.transaction のクラス修飾子と型クラス説明classTransactionAwareCacheDecorator.put(java.lang.Object, java.lang.Object)、TransactionAwareCacheDecorator.evict(java.lang.Object)、TransactionAwareCacheDecorator.clear()操作を Spring 管理のトランザクション(Spring のTransactionSynchronizationManagerを介して)と同期し、成功したトランザクションのコミット後フェーズでのみ実際のキャッシュのプット / エビクト / クリア操作を実行するキャッシュデコレータ。Cache を返す org.springframework.cache.transaction のメソッド修飾子と型メソッド説明protected CacheAbstractTransactionSupportingCacheManager.decorateCache(Cache cache) TransactionAwareCacheDecorator.getTargetCache()このキャッシュが委譲するターゲットキャッシュを返します。型 Cache のパラメーターを持つ org.springframework.cache.transaction のメソッド型 Cache のパラメーターを持つ org.springframework.cache.transaction のコンストラクター修飾子コンストラクター説明TransactionAwareCacheDecorator(Cache targetCache) 指定されたターゲットキャッシュの新しい TransactionAwareCache を作成します。org.springframework.web.reactive.config 内の Cache 使用
型 Cache のパラメーターを持つ org.springframework.web.reactive.config のメソッド修飾子と型メソッド説明ResourceHandlerRegistration.resourceChain(boolean cacheResources, Cache cache) 使用するリソースリゾルバーとトランスフォーマーのチェーンを構成します。型 Cache のパラメーターを持つ org.springframework.web.reactive.config のコンストラクターorg.springframework.web.reactive.resource 内の Cache 使用
修飾子と型メソッド説明CachingResourceResolver.getCache()設定されたCacheを返します。CachingResourceTransformer.getCache()設定されたCacheを返します。型 Cache のパラメーターを持つ org.springframework.web.reactive.resource のコンストラクターorg.springframework.web.servlet.config.annotation 内の Cache 使用
型 Cache のパラメーターを持つ org.springframework.web.servlet.config.annotation のメソッド修飾子と型メソッド説明ResourceHandlerRegistration.resourceChain(boolean cacheResources, Cache cache) 使用するリソースリゾルバーとトランスフォーマーのチェーンを構成します。型 Cache のパラメーターを持つ org.springframework.web.servlet.config.annotation のコンストラクターorg.springframework.web.servlet.resource 内の Cache 使用
修飾子と型メソッド説明CachingResourceResolver.getCache()設定されたCacheを返します。CachingResourceTransformer.getCache()設定されたCacheを返します。型 Cache のパラメーターを持つ org.springframework.web.servlet.resource のコンストラクター