OSHiredisReader
Description
This class provides a Smalltalk mapping for the redisReader C structure from the hiredis library. It is used internally by the <OSHiredisContext> to manage the buffer for reading replies from the Redis server.
An important feature exposed by this class is the maxbuf field, which allows for performance tuning when dealing with very large payloads. By setting maxbuf to 0, the reader's buffer is made unlimited in size and will not be freed between operations, which can significantly reduce memory allocation overhead in high-throughput scenarios.
Instances of this class are not meant to be created directly by application code but are accessed via the <EsRedisClient>'s readerMaxBuffer and readerMaxBuffer: methods.
Class Methods
create
  Create a new hiredis reader instance by calling the C library function.
     This is the designated factory method for creating new readers.
    
     Answers:
        <OSHiredisReader> A new instance wrapping the C reader structure.
        <nil> If the creation fails.
Instance Methods
None
Last modified date: 01/22/2026