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.