Package

laserdisc

protocol

Permalink

package protocol

Visibility
  1. Public
  2. All

Type Members

  1. trait AllBListP extends BListP with BListPExtra

    Permalink
  2. trait AllHashP extends HashP with HashPExtra

    Permalink
  3. trait AllHyperLogLogP extends HyperLogLogP with HyperLogLogPExtra

    Permalink
  4. trait AllKeyP extends KeyP with KeyPExtra

    Permalink
  5. trait AllListP extends ListP with ListPExtra

    Permalink
  6. trait AllSetP extends SetP with SetPExtra

    Permalink
  7. trait AllSortedSetP extends SortedSetP with SortedSetPExtra

    Permalink
  8. trait AllStringP extends StringP with StringPExtra

    Permalink
  9. sealed trait Array extends RESP

    Permalink

    RESP Arrays

    RESP Arrays

    There can be 2 cases:

    • nil arrays, where the length is -1 and no array element is present
    • actual (non-nil) arrays, where the length is >= 0

    Non-nil Arrays can be constructed using the RESPBuilders#arr(xs: Seq[RESP]) method.

    Example:
    1. import laserdisc.protocol.RESP._
      val nonNilArray: NonNilArray             = arr(Vector(str("hello"), str("world")))
      val guaranteedNonEmptyArray: NonNilArray = arr(str("hello"), str("world"))
      val emptyArray: NonNilArray              = arr(Vector.empty)
      val nilArray: NilArray                   = nilArray
    Note

    A forwarder for nil is present too and represented using the final vals RESPBuilders.nilArray

    ,

    RESPBuilders#arr(one: RESP, rest: RESP*) is an overload which supports the creation of guaranteed non-empty sequences only. This is achieved through the usage of one fixed parameter followed by a var-arg of the same

  10. trait BListP extends AnyRef

    Permalink
  11. trait BListPExtra extends AnyRef

    Permalink
  12. sealed trait BulkString extends RESP

    Permalink

    RESP Bulk Strings

    RESP Bulk Strings

    There can be 2 cases:

    • null bulk strings, where the length is -1 and no actual underlying string is present
    • actual (non-null) bulk strings, where the length is >= 0

    Non-null BulkStrings can be constructed using the RESPBuilders#bulk method

    Example:
    1. import laserdisc.protocol.RESP._
      val nonNullBulkString: NonNullBulkString = bulk("some string")
      val nullBulkString: NullBulkString       = nullBulk
    Note

    A forwarder for null BulkStrings is present too and represented using the final vals RESPBuilders.nullBulk

    See also

    Show

  13. trait ConnectionP extends AnyRef

    Permalink
  14. final class Error extends LaserDiscRuntimeError with RESP

    Permalink

    RESP Errors

    RESP Errors

    RESP Errors are also scala.RuntimeExceptions, although where possible they will not contain stacktrace data

    These can be constructed by using the RESPBuilders#err method

    Example:
    1. import laserdisc.protocol.RESP._
      val error: Error = err("some error message")
  15. trait HashP extends AnyRef

    Permalink
  16. trait HashPExtra extends AnyRef

    Permalink
  17. trait HyperLogLogP extends AnyRef

    Permalink
  18. trait HyperLogLogPExtra extends AnyRef

    Permalink
  19. final class Integer extends RESP

    Permalink

    RESP Integers

    RESP Integers

    These can be constructed by using the RESPBuilders#int method

    Example:
    1. import laserdisc.protocol.RESP._
      val integer: Integer = int(42)
    Note

    Sometimes the values 0 and 1 are used to represent boolean values. In this case 0 corresponds to False while 1 to True, respectively.

  20. trait KeyP extends AnyRef

    Permalink
  21. trait KeyPExtra extends AnyRef

    Permalink
  22. final class LenientStringCodec extends Codec[String]

    Permalink
  23. trait ListP extends AnyRef

    Permalink
  24. trait ListPExtra extends AnyRef

    Permalink
  25. trait LowPriorityRESPParamWrite extends LowestPriorityRESPParamWrite

    Permalink
  26. trait LowPriorityReadInstances extends LowerPriorityReadInstances

    Permalink
  27. trait LowPriorityShowInstances extends AnyRef

    Permalink
  28. sealed trait LowerPriorityReadInstances extends AnyRef

    Permalink
  29. sealed trait LowestPriorityRESPParamWrite extends AnyRef

    Permalink
  30. sealed trait NilArray extends Array

    Permalink
  31. final class NonNilArray extends Array

    Permalink

    This is the special case of a non-nil RESP Array

    This is the special case of a non-nil RESP Array

    These can be constructed by using the RESPBuilders#arr(xs: Seq[RESP]) method

    or

    by resorting to the overloaded RESPBuilders#arr(one: RESP, rest: RESP*) method which expects one parameter to be supplied followed by a (possibly empty) sequence of RESPs (vararg).

  32. final class NonNullBulkString extends BulkString

    Permalink

    This is the special case of a non-null RESP BulkString

    This is the special case of a non-null RESP BulkString

    These can be constructed by using the RESPBuilders#bulk method

  33. sealed trait NullBulkString extends BulkString

    Permalink
  34. sealed trait Protocol extends Request with Response

    Permalink
  35. sealed trait ProtocolCodec[A] extends Any

    Permalink
  36. trait PublishP extends AnyRef

    Permalink
  37. sealed trait RESP extends Serializable

    Permalink

    Redis Protocol Specification

    Redis Protocol Specification

    This sealed trait represents the entire Redis Serialization Protocol algebra

    Concrete instances of this trait must be created using this trait's companion object's methods, were scodec.Codecs for each are also defined

    See also

    RESPCodecs

    RESPBuilders

  38. trait RESPBuilders extends AnyRef

    Permalink
  39. trait RESPCodecs extends AnyRef

    Permalink
  40. trait RESPParamWrite[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  41. trait RESPRead[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  42. trait Read[A, B] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  43. sealed trait Request extends AnyRef

    Permalink
  44. sealed trait Response extends AnyRef

    Permalink
  45. trait ServerP extends AnyRef

    Permalink
  46. trait SetP extends AnyRef

    Permalink
  47. trait SetPExtra extends AnyRef

    Permalink
  48. trait Show[A] extends AnyRef

    Permalink
    Annotations
    @implicitNotFound( ... )
  49. final class SimpleString extends RESP

    Permalink

    RESP Simple Strings

    RESP Simple Strings

    These can be constructed by using the RESPBuilders#str method

    Example:
    1. import laserdisc.protocol.RESP._
      val simpleString: SimpleString = str("some string")
    Note

    Sometimes the value "OK" is used to represent a successful acknowledgement/processing of a command.

  50. trait SortedSetP extends AnyRef

    Permalink
  51. trait SortedSetPExtra extends AnyRef

    Permalink
  52. trait StringP extends AnyRef

    Permalink
  53. trait StringPExtra extends AnyRef

    Permalink

Value Members

  1. object Error extends Serializable

    Permalink
  2. object Integer extends Serializable

    Permalink
  3. object KeyP

    Permalink
  4. object ListP

    Permalink
  5. object NilArray extends NilArray with Product with Serializable

    Permalink
  6. object NonNilArray extends Serializable

    Permalink
  7. object NonNullBulkString extends Serializable

    Permalink
  8. object NullBulkString extends NullBulkString with Product with Serializable

    Permalink
  9. object Protocol

    Permalink
  10. object RESP extends RESPBuilders with RESPCodecs with Serializable

    Permalink
  11. object RESPParamWrite extends LowPriorityRESPParamWrite

    Permalink
  12. object RESPRead

    Permalink
  13. object Read extends LowPriorityReadInstances

    Permalink
  14. object ServerP

    Permalink
  15. object Show extends LowPriorityShowInstances

    Permalink
  16. object SimpleString extends Serializable

    Permalink
  17. object SortedSetP

    Permalink
  18. object StringP

    Permalink

Ungrouped