commit | author | age
|
a18bfa
|
1 |
package com.codingapi.tm.redis; |
Z |
2 |
|
|
3 |
|
|
4 |
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
5 |
import org.springframework.stereotype.Component; |
|
6 |
|
|
7 |
/** |
|
8 |
* Created by lorne on 2017/10/31. |
|
9 |
*/ |
|
10 |
|
|
11 |
@Component |
|
12 |
@ConfigurationProperties(prefix = "spring.redis.cluster") |
|
13 |
public class RedisProperties { |
|
14 |
|
|
15 |
|
|
16 |
private String nodes; |
|
17 |
|
|
18 |
private Integer commandTimeout; |
|
19 |
|
|
20 |
private String password; |
|
21 |
|
|
22 |
public String getPassword() { |
|
23 |
return password; |
|
24 |
} |
|
25 |
|
|
26 |
public void setPassword(String password) { |
|
27 |
this.password = password; |
|
28 |
} |
|
29 |
|
|
30 |
public String getNodes() { |
|
31 |
return nodes; |
|
32 |
} |
|
33 |
|
|
34 |
public void setNodes(String nodes) { |
|
35 |
this.nodes = nodes; |
|
36 |
} |
|
37 |
|
|
38 |
public Integer getCommandTimeout() { |
|
39 |
return commandTimeout; |
|
40 |
} |
|
41 |
|
|
42 |
public void setCommandTimeout(Integer commandTimeout) { |
|
43 |
this.commandTimeout = commandTimeout; |
|
44 |
} |
|
45 |
} |