MCPcopy Create free account
hub / github.com/ContentSquare/chproxy / Stats

Method Stats

cache/cache.go:13–13  ·  view source on GitHub ↗

TODO consider the value of Stats in future iterations. Maybe it is not needed?

()

Source from the content-addressed store, hash-verified

11 io.Closer
12 // TODO consider the value of Stats in future iterations. Maybe it is not needed?
13 Stats() Stats
14 Get(key *Key) (*CachedData, error)
15 Put(r io.Reader, ctMetadata ContentMetadata, key *Key) (time.Duration, error)
16 Name() string

Callers 3

refreshCacheMetricsMethod · 0.65
TestCacheSizeFunction · 0.65
TestCacheCleanFunction · 0.65

Implementers 2

fileSystemCachecache/filesystem_cache.go
redisCachecache/redis_cache.go

Calls

no outgoing calls

Tested by 2

TestCacheSizeFunction · 0.52
TestCacheCleanFunction · 0.52