@Override public Boolean setBit(byte[] key, long offset, boolean value) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline(connection .newJedisResult(connection.getRequiredPipeline().setbit(key, offset, JedisConverters.toBit(value)))); return null; } if (isQueueing()) { transaction(connection .newJedisResult(connection.getRequiredTransaction().setbit(key, offset, JedisConverters.toBit(value)))); return null; } return connection.getJedis().setbit(key, offset, JedisConverters.toBit(value)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Boolean setBit(byte[] key, long offset, boolean value) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline(connection .newJedisResult(connection.getRequiredPipeline().setbit(key, offset, JedisConverters.toBit(value)))); return null; } if (isQueueing()) { transaction(connection .newJedisResult(connection.getRequiredTransaction().setbit(key, offset, JedisConverters.toBit(value)))); return null; } return connection.getJedis().setbit(key, offset, JedisConverters.toBit(value)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }
@Override public Boolean setBit(byte[] key, long offset, boolean value) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline(connection .newJedisResult(connection.getRequiredPipeline().setbit(key, offset, JedisConverters.toBit(value)))); return null; } if (isQueueing()) { transaction(connection .newJedisResult(connection.getRequiredTransaction().setbit(key, offset, JedisConverters.toBit(value)))); return null; } return connection.getJedis().setbit(key, offset, JedisConverters.toBit(value)); } catch (Exception ex) { throw convertJedisAccessException(ex); } }