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

Method Put

cache/cache.go:15–15  ·  view source on GitHub ↗
(r io.Reader, ctMetadata ContentMetadata, key *Key)

Source from the content-addressed store, hash-verified

13 Stats() Stats
14 Get(key *Key) (*CachedData, error)
15 Put(r io.Reader, ctMetadata ContentMetadata, key *Key) (time.Duration, error)
16 Name() string
17}
18

Callers 7

serveFromCacheMethod · 0.65
TestCacheSizeFunction · 0.65
cacheAddGetHelperFunction · 0.65
TestCacheCleanFunction · 0.65

Implementers 2

fileSystemCachecache/filesystem_cache.go
redisCachecache/redis_cache.go

Calls

no outgoing calls

Tested by 6

TestCacheSizeFunction · 0.52
cacheAddGetHelperFunction · 0.52
TestCacheCleanFunction · 0.52