Class RedisProperties

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

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

    • RedisProperties

      public RedisProperties()
  • Method Details

    • getDatabase

      public int getDatabase()
    • setDatabase

      public void setDatabase(int database)
    • getUrl

      public @Nullable String getUrl()
    • setUrl

      public void setUrl(@Nullable String url)
    • getHost

      public String getHost()
    • setHost

      public void setHost(String host)
    • getUsername

      public @Nullable String getUsername()
    • setUsername

      public void setUsername(@Nullable String username)
    • getPassword

      public @Nullable String getPassword()
    • setPassword

      public void setPassword(@Nullable String password)
    • getPort

      public int getPort()
    • setPort

      public void setPort(int port)
    • getSsl

      public RedisProperties.Ssl getSsl()
    • getTimeout

      public @Nullable Duration getTimeout()
    • setTimeout

      public void setTimeout(@Nullable Duration timeout)
    • getConnectTimeout

      public @Nullable Duration getConnectTimeout()
    • setConnectTimeout

      public void setConnectTimeout(@Nullable Duration connectTimeout)
    • getClientName

      public @Nullable String getClientName()
    • setClientName

      public void setClientName(@Nullable String clientName)
    • getClientType

      public @Nullable RedisProperties.ClientType getClientType()
    • setClientType

      public void setClientType(@Nullable RedisProperties.ClientType clientType)
    • getSentinel

      public @Nullable RedisProperties.Sentinel getSentinel()
    • setSentinel

      public void setSentinel(@Nullable RedisProperties.Sentinel sentinel)
    • getCluster

      public @Nullable RedisProperties.Cluster getCluster()
    • setCluster

      public void setCluster(@Nullable RedisProperties.Cluster cluster)
    • getJedis

      public RedisProperties.Jedis getJedis()
    • getLettuce

      public RedisProperties.Lettuce getLettuce()