August 2017
Intermediate to advanced
332 pages
9h 16m
English
Add a new file src/main/java/com/leszko/calculator/CacheConfig.java:
package com.leszko.calculator;import org.springframework.cache.CacheManager;import org.springframework.cache.annotation.CachingConfigurerSupport;import org.springframework.cache.annotation.EnableCaching;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.data.redis.cache.RedisCacheManager;import org.springframework.data.redis.connection.RedisConnectionFactory;import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;import org.springframework.data.redis.core.RedisTemplate;/** Cache config. */@Configuration@EnableCachingpublic class ...
Read now
Unlock full access