(multi []*redis.Resp, opstr string)
| 304 | } |
| 305 | |
| 306 | func getHashKey(multi []*redis.Resp, opstr string) []byte { |
| 307 | var index = 1 |
| 308 | switch opstr { |
| 309 | case "ZINTERSTORE", "ZUNIONSTORE", "EVAL", "EVALSHA": |
| 310 | index = 3 |
| 311 | } |
| 312 | if index < len(multi) { |
| 313 | return multi[index].Value |
| 314 | } |
| 315 | return nil |
| 316 | } |