MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewRankingLocalCache

Function NewRankingLocalCache

internal/repository/cache/local.go:32–37  ·  view source on GitHub ↗
(logger *zap.Logger)

Source from the content-addressed store, hash-verified

30}
31
32func NewRankingLocalCache(logger *zap.Logger) RankingLocalCache {
33 return &rankingLocalCache{
34 ttl: 10 * time.Minute,
35 logger: logger,
36 }
37}
38
39func (r *rankingLocalCache) Set(ctx context.Context, posts []domain.Post) error {
40 if len(posts) == 0 {

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected