Class RedisProperties

java.lang.Object
org.springframework.boot.autoconfigure.data.redis.RedisProperties

@ConfigurationProperties(prefix="spring.redis") public class RedisProperties extends Object
Configuration properties for Redis.
Since:
1.0.0
Author:
Dave Syer, Christoph Strobl, EddĂș MelĂ©ndez, Marco Aust, Mark Paluch, Stephane Nicoll
  • Constructor Details

    • RedisProperties

      public RedisProperties()
  • Method Details

    • getDatabase

      public int getDatabase()
    • setDatabase

      public void setDatabase(int database)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getUsername

      public String getUsername()
    • setUsername

      public void setUsername(String username)
    • getPassword

      public String getPassword()
    • setPassword

      public void setPassword(String password)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • isSsl

      public boolean isSsl()
    • setSsl

      public void setSsl(boolean ssl)
    • setTimeout

      public void setTimeout(Duration timeout)
    • getTimeout

      public Duration getTimeout()
    • getConnectTimeout

      public Duration getConnectTimeout()
    • setConnectTimeout

      public void setConnectTimeout(Duration connectTimeout)
    • getClientName

      public String getClientName()
    • setClientName

      public void setClientName(String clientName)
    • getClientType

      public RedisProperties.ClientType getClientType()
    • setClientType

      public void setClientType(RedisProperties.ClientType clientType)
    • getSentinel

      public RedisProperties.Sentinel getSentinel()
    • setSentinel

      public void setSentinel(RedisProperties.Sentinel sentinel)
    • getCluster

      public RedisProperties.Cluster getCluster()
    • setCluster

      public void setCluster(RedisProperties.Cluster cluster)
    • getJedis

      public RedisProperties.Jedis getJedis()
    • getLettuce

      public RedisProperties.Lettuce getLettuce()