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

Method getItemBytes

db/revision_cache_lru.go:843–845  ·  view source on GitHub ↗

getItemBytes atomically retrieves the rev cache items overall memory footprint

()

Source from the content-addressed store, hash-verified

841
842// getItemBytes atomically retrieves the rev cache items overall memory footprint
843func (value *revCacheValue) getItemBytes() int64 {
844 return value.itemBytes.Load()
845}
846
847// CalculateBytes will calculate the bytes from revisions in the document, body and channels on the document
848func (rev *DocumentRevision) CalculateBytes() {

Callers 8

getFromCacheByRevMethod · 0.80
getFromCacheByCVMethod · 0.80
GetActiveMethod · 0.80
upsertDocToCacheMethod · 0.80
removeFromCacheByCVMethod · 0.80
removeFromCacheByRevMethod · 0.80

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected