add 视频页面
update 用户管理
This commit is contained in:
@@ -27,7 +27,7 @@ public class RedisTools {
|
||||
//Properties properties = PropertyUtil.loadProperties("jedis.properties");
|
||||
//host = properties.getProperty("redis.host");
|
||||
//port = Integer.valueOf(properties.getProperty("redis.port"));
|
||||
host = "127.0.0.1";
|
||||
host = "172.21.35.118";
|
||||
port = 6379;
|
||||
}
|
||||
|
||||
@@ -52,6 +52,12 @@ public class RedisTools {
|
||||
return set(0, key.toString(), value);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param key key
|
||||
* @param value value
|
||||
* @param timeout 过期时间,单位秒
|
||||
*/
|
||||
public static boolean set(String key, String value, int timeout) {
|
||||
try {
|
||||
if (isNotInstallRedis) {
|
||||
|
||||
Reference in New Issue
Block a user