Module lettuce.core

Class XGroupCreateArgs

java.lang.Object
io.lettuce.core.XGroupCreateArgs

public class XGroupCreateArgs
extends Object
Argument list builder for the Redis XGROUP CREATE command. Static import the methods from XGroupCreateArgs.Builder and call the methods: mkstream(…) .

XGroupCreateArgs is a mutable object and instances should be used only once to avoid shared mutable state.

Since:
5.2
Author:
Mark Paluch
  • Constructor Details

    • XGroupCreateArgs

      public XGroupCreateArgs()
  • Method Details

    • mkstream

      public XGroupCreateArgs mkstream​(boolean mkstream)
      Make a stream if it does not exists.
      Parameters:
      mkstream - whether to apply MKSTREAM
      Returns:
      this
    • build

      public <K,​ V> void build​(CommandArgs<K,​V> args)