forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
691 B
30 lines
691 B
6 years ago
|
package com.fanruan.api.cluster.state;
|
||
|
|
||
|
import com.fr.store.impl.redis.RedisConfig;
|
||
|
|
||
|
/**
|
||
|
* @author Dylan.Liu
|
||
|
* @version 10.0
|
||
|
* Created by Dylan.Liu on 2019/12/3
|
||
|
*/
|
||
|
public class RedisConfigKit {
|
||
|
|
||
|
/**
|
||
|
* 获取 Redis 里表名的统一的前缀
|
||
|
* @return Redis 里表名的统一的前缀
|
||
|
*/
|
||
|
public static String getTableNamePrefix() {
|
||
|
|
||
|
return RedisConfig.getInstance().getTableNamePrefix();
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 获取 Redis 里过期 key 删除间隔时间
|
||
|
* @return Redis 里过期 key 删除间隔时间
|
||
|
*/
|
||
|
public static int getExpireStateRemoveInterval() {
|
||
|
|
||
|
return RedisConfig.getInstance().getExpireStateRemoveInterval();
|
||
|
}
|
||
|
}
|