Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
153
func
(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
Lock
Method · 0.45
Unlock
Method · 0.45
Tested by
no test coverage detected