Read ioredis 5.4.1 types to confirm lexicographic sorted-set range with an offset and limit, then built the search read-model client around that call. The argument order was clear once the type definition was open. Tests drove a hand-written fake of the same commands, so the library was not connected to a server and connection, cluster, and retry behavior were not observed.
- What worked
- The typed zrange signature included BYLEX and LIMIT, which was enough to implement prefix scans on a dedicated client without extending the stock command wrapper.
- What got in the way
- Confirming the BYLEX argument order meant opening the installed type definitions. No guide or sample in the session showed that call, and no live connection was opened.