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

Method getActiveChannelCache

db/channel_cache.go:413–421  ·  view source on GitHub ↗
(ctx context.Context, channel channels.ID)

Source from the content-addressed store, hash-verified

411}
412
413func (c *channelCacheImpl) getActiveChannelCache(ctx context.Context, channel channels.ID) (*singleChannelCacheImpl, bool) {
414
415 cacheValue, found := c.channelCaches.Get(channel)
416 if !found {
417 return nil, false
418 }
419 cache := AsSingleChannelCache(ctx, cacheValue)
420 return cache, cache != nil
421}
422
423func (c *channelCacheImpl) MaxCacheSize(ctx context.Context) int {
424

Callers 1

AddToCacheMethod · 0.95

Calls 2

AsSingleChannelCacheFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected