Tabnine Logo
ReactiveListCommands.lRem
Code IndexAdd Tabnine to your IDE (free)

How to use
lRem
method
in
org.springframework.data.redis.connection.ReactiveListCommands

Best Java code snippets using org.springframework.data.redis.connection.ReactiveListCommands.lRem (Showing top 9 results out of 315)

origin: spring-projects/spring-data-redis

/**
 * Removes all occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.all().occurrencesOf(value).from(key))).next().map(NumericResponse::getOutput);
}
origin: spring-projects/spring-data-redis

/**
 * Removes the first {@literal count} occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param count must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, Long count, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(count, "Count must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.first(count).occurrencesOf(value).from(key))).next()
      .map(NumericResponse::getOutput);
}
origin: spring-projects/spring-data-redis

@Override
@SuppressWarnings("unchecked")
public Mono<Long> remove(K key, long count, Object value) {
  Assert.notNull(key, "Key must not be null!");
  return createMono(connection -> connection.lRem(rawKey(key), count, rawValue((V) value)));
}
origin: org.springframework.data/spring-data-redis

/**
 * Removes all occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.all().occurrencesOf(value).from(key))).next().map(NumericResponse::getOutput);
}
origin: org.springframework.data/spring-data-redis

/**
 * Removes the first {@literal count} occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param count must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, Long count, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(count, "Count must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.first(count).occurrencesOf(value).from(key))).next()
      .map(NumericResponse::getOutput);
}
origin: apache/servicemix-bundles

/**
 * Removes all occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.all().occurrencesOf(value).from(key))).next().map(NumericResponse::getOutput);
}
origin: org.springframework.data/spring-data-redis

@Override
@SuppressWarnings("unchecked")
public Mono<Long> remove(K key, long count, Object value) {
  Assert.notNull(key, "Key must not be null!");
  return createMono(connection -> connection.lRem(rawKey(key), count, rawValue((V) value)));
}
origin: apache/servicemix-bundles

/**
 * Removes the first {@literal count} occurrences of {@literal value} from the list stored at {@literal key}.
 *
 * @param key must not be {@literal null}.
 * @param count must not be {@literal null}.
 * @param value must not be {@literal null}.
 * @return
 * @see <a href="http://redis.io/commands/lrem">Redis Documentation: LREM</a>
 */
default Mono<Long> lRem(ByteBuffer key, Long count, ByteBuffer value) {
  Assert.notNull(key, "Key must not be null!");
  Assert.notNull(count, "Count must not be null!");
  Assert.notNull(value, "Value must not be null!");
  return lRem(Mono.just(LRemCommand.first(count).occurrencesOf(value).from(key))).next()
      .map(NumericResponse::getOutput);
}
origin: apache/servicemix-bundles

@Override
@SuppressWarnings("unchecked")
public Mono<Long> remove(K key, long count, Object value) {
  Assert.notNull(key, "Key must not be null!");
  return createMono(connection -> connection.lRem(rawKey(key), count, rawValue((V) value)));
}
org.springframework.data.redis.connectionReactiveListCommandslRem

Javadoc

Removes the first count occurrences of value from the list stored at key.

Popular methods of ReactiveListCommands

  • bPop
    Removes and returns the top BPopCommand#getDirection() element from lists stored at BPopCommand#getK
  • bRPopLPush
  • blPop
    Removes and returns first element from lists stored at keys. Blocks connection until element availa
  • brPop
    Removes and returns last element from lists stored at keys. Blocks connection until element availab
  • lIndex
  • lInsert
  • lLen
  • lPop
    Removes and returns first element in list stored at key.
  • lPush
    Prepend values to key.
  • lPushX
    Prepend value to key if key already exists.
  • lRange
  • lSet
  • lRange,
  • lSet,
  • lTrim,
  • pop,
  • push,
  • rPop,
  • rPopLPush,
  • rPush,
  • rPushX

Popular in Java

  • Creating JSON documents from java classes using gson
  • getContentResolver (Context)
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • String (java.lang)
  • Path (java.nio.file)
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now