Packages

case class RedisDataCodec[T](read: (ByteString) ⇒ T, write: (T) ⇒ ByteString) extends Product with Serializable

Typeclass which expresses that values of some type are serializable to binary form (ByteString) and deserializable from it in order to use them as keys, hash keys and values in Redis commands.

By default, RedisDataCodec is provided for simple types like String, ByteString, Array[Byte], Boolean, Char, all primitive numeric types and NamedEnums (which have NamedEnumCompanion).

Also, all types which have an instance of GenCodec automatically have an instance of RedisDataCodec.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RedisDataCodec
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RedisDataCodec(read: (ByteString) ⇒ T, write: (T) ⇒ ByteString)

Value Members

  1. val read: (ByteString) ⇒ T
  2. val write: (T) ⇒ ByteString