Example #1
0
 /// <summary>
 /// 更新用户信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateUserInfo(UserInfo User)
 {
     //SetCache();
     EyouSoftSSOCache.Remove(CacheTag.Company.CompanyUser + User.UserName.ToLower());
     EyouSoftSSOCache.Add(CacheTag.Company.CompanyUser + User.UserName.ToLower(), User, DateTime.Now.AddHours(12));
     return;
 }
Example #2
0
        /// <summary>
        /// 更新用户信息
        /// </summary>
        /// <param name="User">用户信息</param>
        public void UpdateUserInfo(UserInfo User)
        {
            //SetCache();
            string cacheKey = string.Format(EyouSoft.Cache.Tag.Company.CompanyUser, User.CompanyID.ToString(), User.UserName.ToLower());

            EyouSoftSSOCache.Remove(cacheKey);
            EyouSoftSSOCache.Add(cacheKey, User, DateTime.Now.AddHours(12));
            return;
        }
Example #3
0
 /// <summary>
 /// 更新管理员信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateMasterInfo(MasterUserInfo User)
 {
     EyouSoftSSOCache.Add(EyouSoft.Cache.Tag.System.SystemUser + User.Username, User, DateTime.Now.AddHours(12));
     return;
 }
Example #4
0
 /// <summary>
 /// 更新管理员信息
 /// </summary>
 /// <param name="User">用户信息</param>
 public void UpdateMasterInfo(MasterUserInfo User)
 {
     //SetCache();
     EyouSoftSSOCache.Add(CacheTag.System.SystemUser + User.UserName, User, DateTime.Now.AddHours(12));
     return;
 }