Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
serveFromCache
Method · 0.65
TestCacheSize
Function · 0.65
TestKeyExpirationWhileFetchtingRedis
Function · 0.65
TestCorruptedPayloadWhileFetchtingRedis
Function · 0.65
TestSmallTTLOnBigPayloadAreCacheWithFile
Function · 0.65
cacheAddGetHelper
Function · 0.65
TestCacheClean
Function · 0.65
Implementers
2
fileSystemCache
cache/filesystem_cache.go
redisCache
cache/redis_cache.go
Calls
no outgoing calls
Tested by
6
TestCacheSize
Function · 0.52
TestKeyExpirationWhileFetchtingRedis
Function · 0.52
TestCorruptedPayloadWhileFetchtingRedis
Function · 0.52
TestSmallTTLOnBigPayloadAreCacheWithFile
Function · 0.52
cacheAddGetHelper
Function · 0.52
TestCacheClean
Function · 0.52