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.
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 likeString
,ByteString
,Array[Byte]
,Boolean
,Char
, all primitive numeric types andNamedEnum
s (which haveNamedEnumCompanion
).Also, all types which have an instance of
GenCodec
automatically have an instance of RedisDataCodec.