https://redis.io/topics/quickstart
bash
#Update apt-get sudo apt-get update
sudo apt-get install redis-server
redis-cli -v
#Start redis server sudo service redis-server start
redic-cli
#EnableCashe in springboot main file
@SpringBootApplication @EnableCaching public class SpringbootRedisCacheApplication {
public static void main(String[] args) {
SpringApplication.run(SpringbootRedisCacheApplication.class, args);
}
}
Refer application.yml file
#Enable Cashe in controller file Class EmployeeController