MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Len

Method Len

pkg/sql/sem/tree/regexp_cache.go:125–132  ·  view source on GitHub ↗

Len returns the number of compiled regular expressions in the cache.

()

Source from the content-addressed store, hash-verified

123
124// Len returns the number of compiled regular expressions in the cache.
125func (rc *RegexpCache) Len() int {
126 if rc == nil {
127 return 0
128 }
129 rc.mu.Lock()
130 defer rc.mu.Unlock()
131 return rc.cache.Len()
132}

Callers

nothing calls this directly

Calls 3

LenMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected