@Override
    public Boolean getBit(byte[] key, long offset) {
        try {
            if (isPipelined()) {
                pipeline(new JedisResult(pipeline.getbit(key, offset)));
                return null;
            }

            // compatibility check for RedisCluster 2.0.0
            Object getBit = client.getbit(key, offset);
            // RedisCluster 2.0
            if (getBit instanceof Long) {
                return (((Long) getBit) == 0 ? Boolean.FALSE : Boolean.TRUE);
            }
            // RedisCluster 2.1
            return ((Boolean) getBit);
        } catch (Exception ex) {
            throw convertException(ex);
        }

    }
@Override
    public Boolean getBit(byte[] key, long offset) {
        try {
            if (isPipelined()) {
                pipeline(new JedisResult(pipeline.getbit(key, offset)));
                return null;
            }

            
            Object getBit = client.getbit(key, offset);
            
            if (getBit instanceof Long) {
                return (((Long) getBit) == 0 ? Boolean.FALSE : Boolean.TRUE);
            }
            
            return ((Boolean) getBit);
        } catch (Exception ex) {
            throw convertException(ex);
        }

    }
@ Override public Boolean getBit ( byte [ ] key , long offset ) { try { if ( isPipelined ( ) ) { pipeline ( new JedisResult ( pipeline . getbit ( key , offset ) ) ) ; return null ; } // compatibility check for RedisCluster 2.0.0 Object getBit = client . getbit ( key , offset ) ; // RedisCluster 2.0 if ( getBit instanceof Long ) { return ( ( ( Long ) getBit ) == 0 ? Boolean . FALSE : Boolean . TRUE ) ; } // RedisCluster 2.1 return ( ( Boolean ) getBit ) ; } catch ( Exception ex ) { throw convertException ( ex ) ; } }
/*
@see org.springframework.data.redis.connection.RedisStringCommands#getBit(byte[], long)
/ *