p

laserdisc

protocol

package protocol

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. trait AllBListP extends BListP with BListPExtra
  2. trait AllHashP extends HashP with HashPExtra
  3. trait AllHyperLogLogP extends HyperLogLogP with HyperLogLogPExtra
  4. trait AllKeyP extends KeyP with KeyPExtra
  5. trait AllListP extends ListP with ListPExtra
  6. trait AllSetP extends SetP with SetPExtra
  7. trait AllSortedSetP extends SortedSetP with SortedSetPExtra
  8. trait AllStringP extends StringP with StringPExtra
  9. sealed trait Array extends RESP

    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
  11. trait BListPExtra extends AnyRef
  12. sealed trait BulkString extends RESP

    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
  14. final class Error extends LaserDiscRuntimeError with RESP

    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
  16. trait HashPExtra extends AnyRef
  17. trait HyperLogLogP extends AnyRef
  18. trait HyperLogLogPExtra extends AnyRef
  19. final class Integer extends RESP

    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
  21. trait KeyPExtra extends AnyRef
  22. final class LenientStringCodec extends Codec[String]
  23. trait ListP extends AnyRef
  24. trait ListPExtra extends AnyRef
  25. trait LowPriorityRESPParamWrite extends LowestPriorityRESPParamWrite
  26. trait LowPriorityReadInstances extends LowerPriorityReadInstances
  27. trait LowPriorityShowInstances extends AnyRef
  28. sealed trait LowerPriorityReadInstances extends AnyRef
  29. sealed trait LowestPriorityRESPParamWrite extends AnyRef
  30. sealed trait NilArray extends Array
  31. final class NonNilArray extends Array

    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

    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
  34. sealed trait Protocol extends Request with Response
  35. sealed trait ProtocolCodec[A] extends Any
  36. trait PublishP extends AnyRef
  37. sealed trait RESP extends Serializable

    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
  39. trait RESPCodecs extends AnyRef
  40. trait RESPParamWrite[A] extends AnyRef
    Annotations
    @implicitNotFound( ... )
  41. trait RESPRead[A] extends AnyRef
    Annotations
    @implicitNotFound( ... )
  42. trait Read[A, B] extends AnyRef
    Annotations
    @implicitNotFound( ... )
  43. sealed trait Request extends AnyRef
  44. sealed trait Response extends AnyRef
  45. trait ServerP extends AnyRef
  46. trait SetP extends AnyRef
  47. trait SetPExtra extends AnyRef
  48. trait Show[A] extends AnyRef
    Annotations
    @implicitNotFound( ... )
  49. final class SimpleString extends RESP

    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
  51. trait SortedSetPExtra extends AnyRef
  52. trait StringP extends AnyRef
  53. trait StringPExtra extends AnyRef

Ungrouped