跳转至

Redis Client Springboot

RedisProperties

private int database = 0;
private String url;
private String host = "localhost";
private int port = 6379;
private String username;
private String password;
private boolean ssl;
private Duration timeout;
private Duration connectTimeout;
private String clientName;
private ClientType clientType;
private Sentinel sentinel;
private Cluster cluster;
private final Jedis jedis = new Jedis();
private final Lettuce lettuce = new Lettuce();

ClientType

public static enum ClientType {
    LETTUCE,
    JEDIS;
}

Pool

private Boolean enabled;
private int maxIdle = 8;
private int minIdle = 0;
private int maxActive = 8;
private Duration maxWait = Duration.ofMillis(-1L);
private Duration timeBetweenEvictionRuns;

Cluster

private List<String> nodes;
private Integer maxRedirects;

Sentinel

private String master;
private List<String> nodes;
private String username;
private String password;

Jedis

private final Pool pool = new Pool();

Lettuce

private Duration shutdownTimeout = Duration.ofMillis(100L);
private final Pool pool = new Pool();
private final Cluster cluster = new Cluster();

Lettuce Cluster

private final Refresh refresh = new Refresh();

Lettuce Cluster Refresh

private boolean dynamicRefreshSources = true;
private Duration period;
private boolean adaptive;