Scala model of the RESP message types.
Instances of these classes are only used when a user runs a raw redis
command and is interested in the output as Redis returns it (see
Redis.exec
). Most commonly however, messages will be instantiated directly
via the Visitor[A]
and Reader[A]
mechanisms.
The BulkString
instance is a little special, since it is always used to
send messages to the server. Note however, that the base class is simply a
forwarder and does not require that any intermediate byte array be
allocated.
- Companion:
- object
class Object
trait Matchable
class Any
class Arr
trait BulkString
class ArrayBulkString
class Error
object Null.type
class Num
class SimpleString