Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
9
func
String(s string) string {
10
return
fmt.Sprintf(
"$%d\r\n%s\r\n"
, len(s), s)
11
}
12
13
// Inline string
14
func
Inline(s string) string {
Callers
15
TestSpop
Function · 0.92
TestSrandmember
Function · 0.92
TestSscan
Function · 0.92
TestSortedSetAdd
Function · 0.92
TestSortedSetScore
Function · 0.92
TestSortedSetIncrby
Function · 0.92
TestZscan
Function · 0.92
TestLpop
Function · 0.92
TestRpop
Function · 0.92
TestLindex
Function · 0.92
TestString
Function · 0.92
TestSet
Function · 0.92
Calls
no outgoing calls
Tested by
15
TestSpop
Function · 0.74
TestSrandmember
Function · 0.74
TestSscan
Function · 0.74
TestSortedSetAdd
Function · 0.74
TestSortedSetScore
Function · 0.74
TestSortedSetIncrby
Function · 0.74
TestZscan
Function · 0.74
TestLpop
Function · 0.74
TestRpop
Function · 0.74
TestLindex
Function · 0.74
TestString
Function · 0.74
TestSet
Function · 0.74