MCPcopy
hub / github.com/bradfitz/gomemcache / legalKey

Function legalKey

memcache/memcache.go:90–100  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

88}
89
90func legalKey(key string) bool {
91 if len(key) > 250 {
92 return false
93 }
94 for i := 0; i < len(key); i++ {
95 if key[i] <= ' ' || key[i] == 0x7f {
96 return false
97 }
98 }
99 return true
100}
101
102var (
103 crlf = []byte("\r\n")

Callers 3

withKeyAddrMethod · 0.85
GetMultiMethod · 0.85
populateOneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…