io.kinoplan.utils.redisson.codec.DefaultRedisDecoders.scala Maven / Gradle / Ivy
package io.kinoplan.utils.redisson.codec
import scala.util.{Success, Try}
trait DefaultRedisDecoders {
implicit val stringRedisDecoder: RedisDecoder[String] = Success(_)
implicit val intRedisDecoder: RedisDecoder[Int] = value => Try(value.toInt)
implicit val longRedisDecoder: RedisDecoder[Long] = value => Try(value.toLong)
}
object DefaultRedisDecoders extends DefaultRedisDecoders
© 2015 - 2025 Weber Informatics LLC | Privacy Policy