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

Method Clear

db/channel_cache.go:139–143  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

137}
138
139func (c *channelCacheImpl) Clear() {
140 c.seqLock.Lock()
141 c.channelCaches.Init()
142 c.seqLock.Unlock()
143}
144
145// Stop stops the channel cache and it's background tasks.
146func (c *channelCacheImpl) Stop(ctx context.Context) {

Callers

nothing calls this directly

Calls 3

InitMethod · 0.65
LockMethod · 0.45
UnlockMethod · 0.45

Tested by

no test coverage detected