/** * 添加数据 * * @param key * @param value * @param duration */ public static void add(String key, Object value, String duration) { add(key, value, Calendars.parseDuration(duration)); }
/** * 安全添加数据 * * @param key * @param value * @param duration * @return */ public static boolean safeAdd(String key, Object value, String duration) { return safeAdd(key, value, Calendars.parseDuration(duration)); }
/** * 替换数据 * * @param key * @param value * @param duration */ public static void replace(String key, Object value, String duration) { replace(key, value, Calendars.parseDuration(duration)); }