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

Method Purge

auth/password_hash.go:153–158  ·  view source on GitHub ↗

Purge deletes all items from the cache.

()

Source from the content-addressed store, hash-verified

151
152// Purge deletes all items from the cache.
153func (c *RandReplKeyCache) Purge() {
154 c.lock.Lock()
155 c.keys = nil
156 c.cache = map[string]struct{}{}
157 c.lock.Unlock()
158}

Callers

nothing calls this directly

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected