Configuration

Method Configuration

@Cacheable("employees")
public Iterable<N> readEmployees(final Short code, final Short company, final Pageable pageable);

Custom Key

@Cacheable(cacheNames = "employees", key = "{ #root.methodName, #code, #company }")
public Iterable<N> readEmployees(final Short code, final Short company, final Pageable pageable);

Registration

Any named cache should be registered, for example in an ehcache configuration file.

Last updated