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

Function soptStoreGeneric

set.go:61–78  ·  view source on GitHub ↗
(args [][]byte, optType byte)

Source from the content-addressed store, hash-verified

59 case ledis.InterType:
60 v, err = ldb.SInter(args[1:]...)
61 }
62 if err != nil {
63 return nil, err
64 }
65 return v, nil
66}
67
68func soptStoreGeneric(args [][]byte, optType byte) (interface{}, error) {
69 if len(args) < 3 {
70 return 0, uhaha.ErrWrongNumArgs
71 }
72
73 var n int64
74 var err error
75
76 switch optType {
77 case ledis.UnionType:
78 n, err = ldb.SUnionStore(args[1], args[2:]...)
79 case ledis.DiffType:
80 n, err = ldb.SDiffStore(args[1], args[2:]...)
81 case ledis.InterType:

Callers 3

cmdSDIFFSTOREFunction · 0.85
cmdSINTERSTOREFunction · 0.85
cmdSUNIONSTOREFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected