UserInfoCacheServiceImpl implements UserInfoCacheService { @Override public void removeLoginStatus(Long userId) throws Exception { redisTemplate.opsForSet().remove(LOGIN_STATUS_PREFIX,userId.toString()) ; }  @Override CIMUserInfo loadUserInfoByUserId(Long userId); @Override boolean saveAndCheckUserLoginStatus(Long userId); @Override void removeLoginStatus(Long userId); @Override Set<CIMUserInfo> onlineUser();  }
@Test public void removeLoginStatus() throws Exception { userInfoCacheService.removeLoginStatus(2000L); }