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

Function NewChannelCacheForContext

db/channel_cache.go:110–112  ·  view source on GitHub ↗
(ctx context.Context, options ChannelCacheOptions, context *DatabaseContext)

Source from the content-addressed store, hash-verified

108}
109
110func NewChannelCacheForContext(ctx context.Context, options ChannelCacheOptions, context *DatabaseContext) (*channelCacheImpl, error) {
111 return newChannelCache(ctx, context.Name, options, context.getQueryHandlerForCollection, context.activeChannels, context.DbStats.Cache())
112}
113
114func newChannelCache(ctx context.Context, dbName string, options ChannelCacheOptions, queryHandlerFactory ChannelQueryHandlerFactory,
115 activeChannels *channels.ActiveChannels, cacheStats *base.CacheStats) (*channelCacheImpl, error) {

Callers 1

NewDatabaseContextFunction · 0.85

Calls 2

newChannelCacheFunction · 0.85
CacheMethod · 0.80

Tested by

no test coverage detected