MCPcopy
hub / github.com/kkdai/youtube / Set

Method Set

player_cache.go:29–31  ·  view source on GitHub ↗

Set : set cache with default expiration

(key string, operations playerConfig)

Source from the content-addressed store, hash-verified

27
28// Set : set cache with default expiration
29func (s *playerCache) Set(key string, operations playerConfig) {
30 s.setWithExpiredTime(key, operations, time.Now().Add(defaultCacheExpiration))
31}
32
33func (s *playerCache) setWithExpiredTime(key string, config playerConfig, time time.Time) {
34 s.key = key

Callers 5

getPlayerConfigMethod · 0.80
decryptNParamMethod · 0.80
httpDoMethod · 0.80
httpPostMethod · 0.80
downloadChunkMethod · 0.80

Calls 1

setWithExpiredTimeMethod · 0.95

Tested by

no test coverage detected