Class SortArgs.Limit

java.lang.Object
io.quarkus.redis.datasource.SortArgs.Limit
Enclosing class:
SortArgs

public static class SortArgs.Limit extends Object
Represent a limit. From the Redis SORT command: The number of returned elements can be limited using the LIMIT modifier. This modifier takes the offset argument, specifying the number of elements to skip and the count argument, specifying the number of elements to return from starting at offset. The following example will return 10 elements of the sorted version of mylist, starting at element 0 (offset is zero-based): SORT mylist LIMIT 0 10
  • Constructor Details

    • Limit

      public Limit(long offset, long count)
      Creates a SortArgs.Limit object.
      Parameters:
      offset - the offset (0 based)
      count - the limit count.
    • Limit

      public Limit(long count)
      Creates a SortArgs.Limit object with just a count (offset is 0)
      Parameters:
      count - the limit count.
  • Method Details