org.springframework.cache.interceptor
Interface CacheDefinition

All Known Subinterfaces:
CacheInvalidateDefinition, CacheUpdateDefinition
All Known Implementing Classes:
DefaultCacheInvalidateDefinition, DefaultCacheUpdateDefinition

public interface CacheDefinition

Interface describing Spring-compliant caching operation.

Author:
Costin Leau

Method Summary
 Set<String> getCacheNames()
          Returns the names of the cache against which this operation is performed.
 String getCondition()
          Returns the SpEL expression conditioning the operation.
 String getKey()
          Returns the SpEL expression identifying the cache key.
 String getName()
          Returns the name of this operation.
 

Method Detail

getName

String getName()
Returns the name of this operation. Can be null. In case of Spring's declarative caching, the exposed name will be: fully qualified class name.method name.

Returns:
the operation name

getCacheNames

Set<String> getCacheNames()
Returns the names of the cache against which this operation is performed.

Returns:
names of the cache on which the operation is performed.

getCondition

String getCondition()
Returns the SpEL expression conditioning the operation.

Returns:
operation condition (as SpEL expression).

getKey

String getKey()
Returns the SpEL expression identifying the cache key.

Returns: