Method
SetCountCache
(ctx context.Context, key string, count int64, ttl time.Duration)
Source from the content-addressed store, hash-verified
| 70 | } |
| 71 | |
| 72 | func (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 | |
| 77 | func (c *relationCache) ClearFollowCache(ctx context.Context, followerID, followeeID int64) error { |
| 78 | // 批量删除相关缓存 |
Callers
nothing calls this directly
Tested by
no test coverage detected