@Test(expected = ClientException.class) public void addSetMemberWithoutMemberIdAndSetId() { SetCacheManager.addSetMember("domain", null, null); }
public static void addSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_ADD_SET_MEMBER.name()); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); Jedis jedis = getRedisConncetion(); try { jedis.sadd(key, memberId); } finally { returnConnection(jedis); } }
SetCacheManager { public static void addSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_ADD_SET_MEMBER.name()); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); Jedis jedis = getRedisConncetion(); try { jedis.sadd(key, memberId); } finally { returnConnection(jedis); } } }
SetCacheManager { public static void addSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_ADD_SET_MEMBER.name()); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); Jedis jedis = getRedisConncetion(); try { jedis.sadd(key, memberId); } finally { returnConnection(jedis); } }  }
SetCacheManager { public static void addSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_ADD_SET_MEMBER.name()); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); Jedis jedis = getRedisConncetion(); try { jedis.sadd(key, memberId); } 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 addSetMember(String graphId, String setId, String memberId) { validateRequired(graphId, setId, memberId, GraphCacheErrorCodes.ERR_CACHE_ADD_SET_MEMBER.name()); String key = CacheKeyGenerator.getSetMembersKey(graphId, setId); Jedis jedis = getRedisConncetion(); try { jedis.sadd(key, memberId); } 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);  }