示例#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);
            }
        }
示例#2
0
 public static string  GetUserInfo()
 {
     return(RedisCore.PopFromList("User"));
 }
示例#3
0
 public static void PushUserInfo(string UserInfo)
 {
     RedisCore.PushIntoList("User", UserInfo);
 }
示例#4
0
 public static string GetNextUrl()
 {
     return(RedisCore.PopFromList("nexturl"));
 }
示例#5
0
 public static void AddNextUrl(string next)
 {
     RedisCore.PushIntoList("nexturl", next);
 }
示例#6
0
 public static string GetUrltoken()
 {
     return(RedisCore.PopFromList("urltoken"));
 }