类 CacheAspectSupport

java.lang.Object
cn.taketoday.cache.interceptor.AbstractCacheInvoker
cn.taketoday.cache.interceptor.CacheAspectSupport
所有已实现的接口:
Aware, BeanFactoryAware, InitializingBean, SmartInitializingSingleton
直接已知子类:
CacheInterceptor

public abstract class CacheAspectSupport extends AbstractCacheInvoker implements BeanFactoryAware, InitializingBean, SmartInitializingSingleton
Base class for caching aspects, such as the CacheInterceptor or an AspectJ aspect.

This enables the underlying Framework caching infrastructure to be used easily to implement an aspect for any aspect system.

Subclasses are responsible for calling relevant methods in the correct order.

Uses the Strategy design pattern. A CacheOperationSource is used for determining caching operations, a KeyGenerator will build the cache keys, and a CacheResolver will resolve the actual cache(s) to use.

Note: A cache aspect is serializable but does not perform any actual caching after deserialization.

从以下版本开始:
4.0
作者:
Costin Leau, Juergen Hoeller, Chris Beams, Phillip Webb, Sam Brannen, Stephane Nicoll