lrange abstract method

Future<List<String?>> lrange(
  1. String key,
  2. int start,
  3. int stop
)

Returns the specified elements of the list stored at key.

start and stop are zero-based indexes. Use 0 and -1 to get all elements. Returns an empty list if the key does not exist. Throws a ValkeyServerException if the key holds a non-list value.

Implementation

Future<List<String?>> lrange(String key, int start, int stop);