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