Retrieving All Members

The RedisPagination::Paginator::SortedSetPaginator and RedisPagination::Paginator::ListPaginator
classes have an all method that can be called to retrieve all elements from these data types for
a given key.

Paging Options

Valid options in the page call for paginating a Redis list are:

:page_size controls the page size for the call. Default is RedisPagination.page_size.

Valid options in the page call for paginating a Redis sorted set are:

:page_size controls the page size for the call. Default is RedisPagination.page_size.

:with_scores controls whether the score is returned along with the item. Default is true.

:reverse controls whether to return items in highest-to-lowest (true) or lowest-to-highest order (false). Default is true.

Differences in Redis Client Libraries

There is a difference between how sorted set data with scores is returned between the 2.x and the 3.x branch of the Ruby Redis client library.

If you are using the 2.x branch, you will get items returned with alternating item and score as follows: