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

Struct postCache

internal/repository/cache/post.go:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32type postCache struct {
33 client redis.Cmdable
34 expiration time.Duration
35 prefix string
36 emptyPrefix string
37 listPrefix string
38 listPubPrefix string
39 pubPrefix string
40 lockPrefix string
41}
42
43func NewPostCache(client redis.Cmdable) PostCache {
44 rand.Seed(time.Now().UnixNano()) // 初始化随机数种子

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected