MCPcopy Index your code
hub / github.com/CodisLabs/codis / getHashKey

Function getHashKey

pkg/proxy/mapper.go:306–316  ·  view source on GitHub ↗
(multi []*redis.Resp, opstr string)

Source from the content-addressed store, hash-verified

304}
305
306func 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}

Callers 1

dispatchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected