Codec

@implicitNotFound(msg = "Could not find any Codecs for type ${A}.\nIf you would like to serialize values in a binary format, please import the binary codec:\n\nimport scalacache.serialization.binary._\n\nIf you would like to serialize values as JSON using circe, please import the circe codec\nand provide a circe Encoder[${A}] and Decoder[${A}], e.g.:\n\nimport scalacache.serialization.circe._\nimport io.circe.generic.auto._\n\nYou will need a dependency on the scalacache-circe module.\n\nSee the documentation for more details on codecs.") trait Codec[A]

Represents a type class that needs to be implemented for serialization/deserialization to work.

Companion
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def decode(bytes: Array[Byte]): DecodingResult[A]
def encode(value: A): Array[Byte]