src/main/java/com/vota/reservation/common/cache/RedisClientTemplate.java
public Long sadd(String key, String member) {
        Long result = null;
        ShardedJedis shardedJedis = redisDataSource.getRedisClient();
        if (shardedJedis == null) {
            return result;
        }
        boolean broken = false;
        try {
            result = shardedJedis.sadd(key, member);

        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            broken = true;
        } finally {
            redisDataSource.returnResource(shardedJedis, broken);
        }
        return result;
    }
// return 0 add a exist value
return 0 add a exist value
return 0 add a exist value
public Long sadd(String key, String member) {
        Long result = null;
        ShardedJedis shardedJedis = redisDataSource.getRedisClient();
        if (shardedJedis == null) {
            return result;
        }
        boolean broken = false;
        try {
            result = shardedJedis.sadd(key, member);
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            broken = true;
        } finally {
            redisDataSource.returnResource(shardedJedis, broken);
        }
        return result;
    }
public Long sadd ( String key , String member ) { Long result = null ; ShardedJedis shardedJedis = redisDataSource . getRedisClient ( ) ; if ( shardedJedis == null ) { return result ; } boolean broken = false ; try { result = shardedJedis . sadd ( key , member ) ; } catch ( Exception e ) { logger . error ( e . getMessage ( ) , e ) ; broken = true ; } finally { redisDataSource . returnResource ( shardedJedis , broken ) ; } return result ; }
return 0 add a exist value
return 0 add a exist value