@Test(expected = ClientException.class) public void removeSetMembersWithoutSetIdAndGraphId() { SetCacheManager.removeSetMember(null, null, "do_123455"); }
public static void removeSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name()); Jedis jedis = getRedisConncetion(); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); try { jedis.srem(key, memberId); } catch (Exception e) { throw new ServerException(GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name(), e.getMessage()); } finally { returnConnection(jedis); } }
SetCacheManager { public static void removeSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name()); Jedis jedis = getRedisConncetion(); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); try { jedis.srem(key, memberId); } catch (Exception e) { throw new ServerException(GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name(), e.getMessage()); } finally { returnConnection(jedis); } } }
SetCacheManager { public static void removeSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name()); Jedis jedis = getRedisConncetion(); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); try { jedis.srem(key, memberId); } catch (Exception e) { throw new ServerException(GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name(), e.getMessage()); } finally { returnConnection(jedis); } }  }
SetCacheManager { public static void removeSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name()); Jedis jedis = getRedisConncetion(); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); try { jedis.srem(key, memberId); } catch (Exception e) { throw new ServerException(GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name(), e.getMessage()); } finally { returnConnection(jedis); } }  static void createSet(String graphId, String setId, List<String> members); static void addSetMember(String graphId, String setId, String memberId); static void addSetMembers(String graphId, String setId, List<String> memberIds); static void removeSetMember(String graphId, String setId, String memberId); static void dropSet(String graphId, String setId); static List<String> getSetMembers(String graphId, String setId); static Long getSetCardinality(String graphId, String setId); static Boolean isSetMember(String graphId, String setId, String member); }
SetCacheManager { public static void removeSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name()); Jedis jedis = getRedisConncetion(); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); try { jedis.srem(key, memberId); } catch (Exception e) { throw new ServerException(GraphCacheErrorCodes.ERR_CACHE_REMOVE_SET_MEMBER.name(), e.getMessage()); } finally { returnConnection(jedis); } }  static void createSet(String graphId, String setId, List<String> members); static void addSetMember(String graphId, String setId, String memberId); static void addSetMembers(String graphId, String setId, List<String> memberIds); static void removeSetMember(String graphId, String setId, String memberId); static void dropSet(String graphId, String setId); static List<String> getSetMembers(String graphId, String setId); static Long getSetCardinality(String graphId, String setId); static Boolean isSetMember(String graphId, String setId, String member);  }