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

Function String

IceFireDB-PubSub/test/proto/types.go:9–11  ·  view source on GitHub ↗

Byte-safe string

(s string)

Source from the content-addressed store, hash-verified

7
8// Byte-safe string
9func String(s string) string {
10 return fmt.Sprintf("$%d\r\n%s\r\n", len(s), s)
11}
12
13// Inline string
14func Inline(s string) string {

Callers 15

TestSpopFunction · 0.92
TestSrandmemberFunction · 0.92
TestSscanFunction · 0.92
TestSortedSetAddFunction · 0.92
TestSortedSetScoreFunction · 0.92
TestSortedSetIncrbyFunction · 0.92
TestZscanFunction · 0.92
TestLpopFunction · 0.92
TestRpopFunction · 0.92
TestLindexFunction · 0.92
TestStringFunction · 0.92
TestSetFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestSpopFunction · 0.74
TestSrandmemberFunction · 0.74
TestSscanFunction · 0.74
TestSortedSetAddFunction · 0.74
TestSortedSetScoreFunction · 0.74
TestSortedSetIncrbyFunction · 0.74
TestZscanFunction · 0.74
TestLpopFunction · 0.74
TestRpopFunction · 0.74
TestLindexFunction · 0.74
TestStringFunction · 0.74
TestSetFunction · 0.74