public static bool SetMenuWithoutExpire(string value) { using (RedisStringOpt redisStringOpt = new RedisStringOpt()) { return(redisStringOpt.Set(MENU_WITHOUT_EXPIRE, value)); } }
public static bool SetMenuWithExpire(string value, DateTime time) { using (RedisStringOpt redisStringOpt = new RedisStringOpt()) { return(redisStringOpt.Set(MENU_WITH_EXPIRE, value, time)); } }
public static bool SetValidateCodeWithExpire(string phoneNumber, string validateCode, DateTime time) { using (RedisStringOpt redisStringOpt = new RedisStringOpt()) { return(redisStringOpt.Set(phoneNumber, validateCode, time)); } }