MCPcopy Create free account
hub / github.com/corestoreio/pkg / NewService

Function NewService

storage/objcache/service.go:214–245  ·  view source on GitHub ↗

NewService creates a new cache service. Arguments level1 and level2 define the cache level. For example level1 should be an LRU or another in-memory cache while level2 should be accessed via network. Only level2 is requred while level1 can be nil.

(level1, level2 NewStorageFn[K], so *ServiceOptions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

TestMakeBinaryFunction · 0.70

Calls 1

newPooledCodecFunction · 0.85

Tested by 2

TestMakeBinaryFunction · 0.56