MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / Purge

Method Purge

auth/password_hash_test.go:147–151  ·  view source on GitHub ↗

Purge deletes all items from the cache.

()

Source from the content-addressed store, hash-verified

145
146// Purge deletes all items from the cache.
147func (c *NoReplKeyCache) Purge() {
148 c.lock.Lock()
149 c.cache = map[string]struct{}{}
150 c.lock.Unlock()
151}
152
153// cacheType represents a specific key-only cache implementation type.
154type cacheType int

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected