MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / cmdHLEN

Function cmdHLEN

hashes.go:158–169  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

156
157 return v, nil
158}
159
160func cmdHLEN(m uhaha.Machine, args []string) (interface{}, error) {
161 if len(args) != 2 {
162 return nil, uhaha.ErrWrongNumArgs
163 }
164
165 n, err := ldb.HLen([]byte(args[1]))
166 if err != nil {
167 return nil, err
168 }
169
170 return n, nil
171}
172

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected