scredis / scredis

Non-blocking, ultra-fast Scala Redis client built on top of Akka IO.

Home Page:https://scredis.github.io/scredis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to parse ArrayResponse of ArrayResponse?

trbngr opened this issue · comments

I'm trying to implement GEORADIUS and am stuck on how to create this response.

  case class GeoRadius(key: String, longitude: Int, latitude: Int, distance: Distance)
    extends Request[Map[String, (Double, Double)]](GeoRadius, key, longitude, latitude, distance.radius, distance.classification, "WITHCOORD") {
    override def decode = {
???

Have a look at implementation of CLUSTER SLOTS, that also has to deal with nested arrays

That's perfect! Thanks.