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