public static bool GetOpenId(string key, out string openId) { openId = string.Empty; object obj = RegisterOpenIDCache.GetValue(key); if (obj == null) { return(false); } else { openId = obj.ToString(); return(true); } }
public static void AddOpenId(string key, string openId, int expires) { RegisterOpenIDCache.Add(key, openId, expires); }