public void RemoveUserCached(string sid) { string sidKey = $"{preSidKey}{sid}"; if (RedisStoreHelper.KeyExists(sidKey)) { string userKey = RedisStoreHelper.GetString(sidKey); RedisStoreHelper.KeyDelete(userKey); RedisStoreHelper.KeyDelete(sidKey); } }
/// <summary> /// 移除图片验证码 /// </summary> public void RemoveImageVerificationCode(string key) { string newKey = $"{preImgVerificationCodeKey}_{key}"; RedisStoreHelper.KeyDelete(newKey); }