/** * Remove the expiration from given {@code key}. * * @param key must not be {@literal null}. * @return * @see <a href="http://redis.io/commands/persist">Redis Documentation: PERSIST</a> */ default Mono<Boolean> persist(ByteBuffer key) { Assert.notNull(key, "Key must not be null!"); return persist(Mono.just(new KeyCommand(key))).next().map(BooleanResponse::getOutput); }
@Override public Mono<Boolean> persist(K key) { Assert.notNull(key, "Key must not be null!"); return createMono(connection -> connection.keyCommands().persist(rawKey(key))); }
/** * Remove the expiration from given {@code key}. * * @param key must not be {@literal null}. * @return * @see <a href="http://redis.io/commands/persist">Redis Documentation: PERSIST</a> */ default Mono<Boolean> persist(ByteBuffer key) { Assert.notNull(key, "Key must not be null!"); return persist(Mono.just(new KeyCommand(key))).next().map(BooleanResponse::getOutput); }
/** * Remove the expiration from given {@code key}. * * @param key must not be {@literal null}. * @return * @see <a href="http://redis.io/commands/persist">Redis Documentation: PERSIST</a> */ default Mono<Boolean> persist(ByteBuffer key) { Assert.notNull(key, "Key must not be null!"); return persist(Mono.just(new KeyCommand(key))).next().map(BooleanResponse::getOutput); }
@Override public Mono<Boolean> persist(K key) { Assert.notNull(key, "Key must not be null!"); return createMono(connection -> connection.keyCommands().persist(rawKey(key))); }
@Override public Mono<Boolean> persist(K key) { Assert.notNull(key, "Key must not be null!"); return createMono(connection -> connection.keyCommands().persist(rawKey(key))); }