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

Function cmdSADD

set.go:32–38  ·  view source on GitHub ↗
(m uhaha.Machine, args []string)

Source from the content-addressed store, hash-verified

30}
31
32func cmdSADD(m uhaha.Machine, args []string) (interface{}, error) {
33 if len(args) < 3 {
34 return nil, uhaha.ErrWrongNumArgs
35 }
36 n, err := ldb.SAdd([]byte(args[1]), stringSliceToBytes(args[2:])...)
37 return redcon.SimpleInt(n), err
38}
39
40func soptGeneric(args [][]byte, optType byte) ([][]byte, error) {
41 if len(args) < 2 {

Callers

nothing calls this directly

Calls 1

stringSliceToBytesFunction · 0.85

Tested by

no test coverage detected