Added description
This commit is contained in:
@@ -14,6 +14,13 @@ import redis.clients.jedis.JedisPool;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
/**
|
||||
* RedisConfig is a class that reads properties from Environment singleton instance and builds beans based on them.
|
||||
* JedisPool ?- an instance of the JedisPool class that contains info about host and port of Reddis
|
||||
* JedisConnectionFactory - ConnectionFactory created based on host and port provided by Environment
|
||||
* RedisTemplate - Creates map-like object which contains ConnectionFactory and sets parameters. Uses Jackson
|
||||
* deserialiazer
|
||||
*/
|
||||
@Configuration
|
||||
@EnableRedisRepositories
|
||||
@PropertySource("classpath:data-access.properties")
|
||||
|
||||
Reference in New Issue
Block a user