All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.chrisdavenport.rediculous.implicits.scala Maven / Gradle / Ivy

The newest version!
package io.chrisdavenport.rediculous

object implicits {
  implicit class RedisArgOps[A](a: A)(implicit R: RedisArg[A]){
    def encode: String = R.encode(a)
  }

  implicit class RedisResultOps(resp: Resp){
    def decode[A: RedisResult]: Either[Resp, A] = RedisResult[A].decode(resp)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy