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

Method copyPosts

internal/repository/cache/local.go:100–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

98}
99
100func (r *rankingLocalCache) copyPosts() []domain.Post {
101 result := make([]domain.Post, len(r.posts))
102 copy(result, r.posts)
103 r.logger.Debug("本地缓存命中",
104 zap.Int("post_count", len(result)))
105 return result
106}

Callers 2

GetMethod · 0.95
ForceGetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected