spring-framework / org.springframework.cache.interceptor / NameMatchCacheOperationSource / addCacheMethod

addCacheMethod

open fun addCacheMethod(methodName: String, ops: MutableCollection<CacheOperation>): Unit

Add an attribute for a cacheable method.

Method names can be exact matches, or of the pattern "xxx*", "*xxx" or "*xxx*" for matching multiple methods.

Parameters

methodName - the name of the method

ops - operation associated with the method