spring redis configuration code example
Example: spring boot redis example
List<Student> students = new ArrayList<>();
studentRepository.findAll().forEach(students::add);
List<Student> students = new ArrayList<>();
studentRepository.findAll().forEach(students::add);