Class JedisConnectionFactory

java.lang.Object
org.springframework.data.redis.connection.jedis.JedisConnectionFactory
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.dao.support.PersistenceExceptionTranslator, RedisConnectionFactory

public class JedisConnectionFactory extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, RedisConnectionFactory
Connection factory creating Jedis based connections.

JedisConnectionFactory should be configured using an environmental configuration and the client configuration. Jedis supports the following environmental configurations:

This connection factory must be initialized prior to obtaining connections.

Note that JedisConnection and its clustered variant are not Thread-safe and instances should not be shared across threads. Refer to the Jedis documentation for guidance on configuring Jedis in a multithreaded environment.

Author:
Costin Leau, Thomas Darimont, Christoph Strobl, Mark Paluch, Fu Jian, Ajith Kumar
See Also: