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

Method SetCountCache

internal/repository/cache/relation.go:72–75  ·  view source on GitHub ↗
(ctx context.Context, key string, count int64, ttl time.Duration)

Source from the content-addressed store, hash-verified

70}
71
72func (c *relationCache) SetCountCache(ctx context.Context, key string, count int64, ttl time.Duration) error {
73 // 设置计数缓存并设置过期时间
74 return c.client.Set(ctx, key, count, ttl).Err()
75}
76
77func (c *relationCache) ClearFollowCache(ctx context.Context, followerID, followeeID int64) error {
78 // 批量删除相关缓存

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected