You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are some of the characters that cause the issue: é, ú, ã, ç...
Same happens when supplying the JsonCodec.schemaBasedBinaryCodec or CodecSupplier.utf8string
importzio._importzio.redis._importzio.schema._importzio.schema.codec._objectZIORedisExampleextendsZIOAppDefault {
objectProtobufCodecSupplierextendsCodecSupplier {
defget[A:Schema]:BinaryCodec[A] =ProtobufCodec.protobufCodec
}
valmyApp:ZIO[Redis, RedisError, Unit] =for {
redis <-ZIO.service[Redis]
r1 <- redis.set(s"string", "ç")
_ <-ZIO.log(s"string was set? $r1") // string was set? true
r2 <- redis.get(s"string").returning[String]
_ <-ZIO.log(s"string was gotten? ${r2.isDefined}") // this will never be printed
} yield ()
overridedefrun= myApp.provide(
Redis.layer,
RedisExecutor.layer,
ZLayer.succeed(RedisConfig.Default),
ZLayer.succeed[CodecSupplier](ProtobufCodecSupplier),
)
}
The text was updated successfully, but these errors were encountered:
These are some of the characters that cause the issue: é, ú, ã, ç...
Same happens when supplying the
JsonCodec.schemaBasedBinaryCodec
orCodecSupplier.utf8string
The text was updated successfully, but these errors were encountered: