package cn.seecoder.fdroidrepository.utils; public class RedisUtil { private final static String REDIS_SPLIT_KEY = ":"; public static String getFolloweeKey(String userId){ return "followees"+REDIS_SPLIT_KEY+userId; } public static String getLockByName(String lockName){ return "lock"+REDIS_SPLIT_KEY+lockName; } public static String getFollowerKey(String userId){ return "followers"+REDIS_SPLIT_KEY+userId; } public static String getUVKey(String time){ return "uv"+REDIS_SPLIT_KEY+time; } public static String getUVKey(String start,String end){ return "uv"+REDIS_SPLIT_KEY+start+REDIS_SPLIT_KEY+end; } public static String getDAUKey(String time){ return "dau"+REDIS_SPLIT_KEY+time; } public static String getDAUKey(String start,String end){ return "dau"+REDIS_SPLIT_KEY+start+REDIS_SPLIT_KEY+end; } }