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

Method getSingleChannelCache

db/channel_cache.go:180–183  ·  view source on GitHub ↗

GetSingleChannelCache will create the cache for the channel if it doesn't exist. If the cache is at capacity, will return a bypass channel cache.

(ctx context.Context, ch channels.ID)

Source from the content-addressed store, hash-verified

178// GetSingleChannelCache will create the cache for the channel if it doesn't exist. If the cache is at
179// capacity, will return a bypass channel cache.
180func (c *channelCacheImpl) getSingleChannelCache(ctx context.Context, ch channels.ID) (SingleChannelCache, error) {
181
182 return c.getChannelCache(ctx, ch)
183}
184
185func (c *channelCacheImpl) AddPrincipal(change *LogEntry) {
186 c.updateHighCacheSequence(change.Sequence)

Callers

nothing calls this directly

Calls 1

getChannelCacheMethod · 0.95

Tested by

no test coverage detected