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

Struct rankingLocalCache

internal/repository/cache/local.go:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24type rankingLocalCache struct {
25 posts []domain.Post
26 expireAt time.Time
27 ttl time.Duration
28 mu sync.RWMutex
29 logger *zap.Logger
30}
31
32func NewRankingLocalCache(logger *zap.Logger) RankingLocalCache {
33 return &rankingLocalCache{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected