インターフェースの使用
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 Cache
CaffeineCacheManager.adaptCaffeineCache
(StringSE name, com.github.benmanes.caffeine.cache.AsyncCache<ObjectSE, ObjectSE> cache) 指定された新しい Caffeine AsyncCache インスタンスを、指定されたキャッシュ名の Spring のCache
抽象化に適合させます。protected Cache
CaffeineCacheManager.adaptCaffeineCache
(StringSE name, com.github.benmanes.caffeine.cache.Cache<ObjectSE, ObjectSE> cache) 指定された新しいネイティブ Caffeine キャッシュインスタンスを、指定されたキャッシュ名の Spring のCache
抽象化に適合させます。protected Cache
CaffeineCacheManager.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 void
protected void
protected Cache.ValueWrapper
指定されたCache
でget(Object)
を実行し、例外が発生した場合はエラーハンドラーを呼び出します。protected void
指定されたCache
でput(Object, Object)
を実行し、例外が発生した場合はエラーハンドラーを呼び出します。void
CacheErrorHandler.handleCacheClearError
(RuntimeExceptionSE exception, Cache cache) 指定されたCache
をクリアするときに、キャッシュプロバイダーによってスローされた特定のランタイム例外を処理します。これは、致命的な例外として再スローされる可能性があります。void
LoggingCacheErrorHandler.handleCacheClearError
(RuntimeExceptionSE exception, Cache cache) void
SimpleCacheErrorHandler.handleCacheClearError
(RuntimeExceptionSE exception, Cache cache) void
CacheErrorHandler.handleCacheEvictError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) 指定されたkey
でアイテムをクリアするときに、キャッシュプロバイダーによってスローされた特定の実行時例外を処理します。致命的な例外として再スローされる可能性があります。void
LoggingCacheErrorHandler.handleCacheEvictError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) void
SimpleCacheErrorHandler.handleCacheEvictError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) void
CacheErrorHandler.handleCacheGetError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) 指定されたkey
でアイテムを取得するときにキャッシュプロバイダーによってスローされた特定の実行時例外を処理します。致命的な例外として再スローされる可能性があります。void
LoggingCacheErrorHandler.handleCacheGetError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) void
SimpleCacheErrorHandler.handleCacheGetError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key) void
CacheErrorHandler.handleCachePutError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key, ObjectSE value) 指定されたkey
およびvalue
でアイテムを更新するときにキャッシュプロバイダーによってスローされた特定のランタイム例外を処理し、致命的な例外として再スローする可能性があります。void
LoggingCacheErrorHandler.handleCachePutError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key, ObjectSE value) void
SimpleCacheErrorHandler.handleCachePutError
(RuntimeExceptionSE exception, Cache cache, ObjectSE key, 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 Cache
AbstractCacheManager.decorateCache
(Cache cache) 必要に応じて、指定された Cache オブジェクトを装飾します。この実装は、常にアイテムを格納しないCache
実装を返します。protected Cache
AbstractCacheManager.getMissingCache
(StringSE name) 指定されたname
またはnull
で不足しているキャッシュを返します。そのようなキャッシュが存在しないか、オンデマンドで作成できなかった場合。protected final Cache
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 Cache
AbstractCacheManager.decorateCache
(Cache cache) 必要に応じて、指定された Cache オブジェクトを装飾します。型 Cache の型引数を持つ org.springframework.cache.support のメソッドパラメーター修飾子と型メソッド説明void
SimpleCacheManager.setCaches
(CollectionSE<? extends Cache> caches) この CacheManager に使用するキャッシュインスタンスのコレクションを指定します。org.springframework.cache.transaction 内の Cache 使用
Cache を実装している org.springframework.cache.transaction のクラス修飾子と型クラス説明class
TransactionAwareCacheDecorator.put(java.lang.Object, java.lang.Object)
、TransactionAwareCacheDecorator.evict(java.lang.Object)
、TransactionAwareCacheDecorator.clear()
操作を Spring 管理のトランザクション(Spring のTransactionSynchronizationManager
を介して)と同期し、成功したトランザクションのコミット後フェーズでのみ実際のキャッシュのプット / エビクト / クリア操作を実行するキャッシュデコレータ。Cache を返す org.springframework.cache.transaction のメソッド修飾子と型メソッド説明protected Cache
AbstractTransactionSupportingCacheManager.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 のコンストラクター