Exemple #1
0
        public static void AddUrltoken(string urltoken)
        {
            int type = Math.Abs(urltoken.GetHashCode()) % 3 + 3;

            if (RedisCore.InsetIntoHash("urltokenhash", urltoken, "存在"))
            {
                RedisCore.PushIntoList("urltoken", urltoken);
            }
        }
Exemple #2
0
 public static string  GetUserInfo()
 {
     return(RedisCore.PopFromList("User"));
 }
Exemple #3
0
 public static void PushUserInfo(string UserInfo)
 {
     RedisCore.PushIntoList("User", UserInfo);
 }
Exemple #4
0
 public static string GetNextUrl()
 {
     return(RedisCore.PopFromList("nexturl"));
 }
Exemple #5
0
 public static void AddNextUrl(string next)
 {
     RedisCore.PushIntoList("nexturl", next);
 }
Exemple #6
0
 public static string GetUrltoken()
 {
     return(RedisCore.PopFromList("urltoken"));
 }