@Override public Boolean persist(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().persist(key), JedisConverters.longToBoolean())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().persist(key), JedisConverters.longToBoolean())); return null; } return JedisConverters.toBoolean(connection.getJedis().persist(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }
@Override Response<Long> execute(Pipeline jedisPipeline) throws DynoException { return jedisPipeline.persist(key); }
@Override public Response<Long> persist(String key) { String command = "persist"; return instrumented(command, () -> delegated.persist(key)); }
@Override public Response<Long> persist(byte[] key) { String command = "persist"; return instrumented(command, () -> delegated.persist(key)); }
@Override public Boolean persist(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().persist(key), JedisConverters.longToBoolean())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().persist(key), JedisConverters.longToBoolean())); return null; } return JedisConverters.toBoolean(connection.getJedis().persist(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }
@Override public Boolean persist(byte[] key) { Assert.notNull(key, "Key must not be null!"); try { if (isPipelined()) { pipeline( connection.newJedisResult(connection.getRequiredPipeline().persist(key), JedisConverters.longToBoolean())); return null; } if (isQueueing()) { transaction(connection.newJedisResult(connection.getRequiredTransaction().persist(key), JedisConverters.longToBoolean())); return null; } return JedisConverters.toBoolean(connection.getJedis().persist(key)); } catch (Exception ex) { throw connection.convertJedisAccessException(ex); } }