I have a @RespositoryRestResource class. Only the GET operation is being used which returns all the data. This is taking some time. So I want to cache this call. However I'm not sure how to achieve caching for RepositoryRestResource. Any help is much appreciated. Thanks
@RepositoryRestResource(collectionResourceRel = "employees", path = "employees", excerptProjection = EmployeeProjection.class)
public interface EmployeeRepository extends BaseRepository<Employee, QEmployee> {
}
Tried to add caching in the project but somehow I'm not sure which method is being used for getting all the data through GET operation.