MCPcopy Index your code
hub / github.com/ByteStorage/FlyDB / stringToBytesWithKey

Function stringToBytesWithKey

structure/string.go:34–36  ·  view source on GitHub ↗

stringToBytesWithKey converts a string to a byte slice

(key string)

Source from the content-addressed store, hash-verified

32
33// stringToBytesWithKey converts a string to a byte slice
34func stringToBytesWithKey(key string) []byte {
35 return []byte(key)
36}
37
38func integerToDuration(ttl int64) time.Duration {
39 return time.Duration(ttl) * time.Second

Callers 15

SAddsMethod · 0.85
SRemsMethod · 0.85
checkAndGetSetMethod · 0.85
existsMethod · 0.85
TTLMethod · 0.85
SDelMethod · 0.85
TestZIncrByFunction · 0.85
HSetMethod · 0.85
HGetMethod · 0.85
HMGetMethod · 0.85
HDelMethod · 0.85
HDelAllMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestZIncrByFunction · 0.68