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

Method SetCountCache

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

Source from the content-addressed store, hash-verified

15 SetCache(ctx context.Context, key string, relations []domain.Relation, ttl time.Duration) error
16 GetCountCache(ctx context.Context, key string) (int64, error)
17 SetCountCache(ctx context.Context, key string, count int64, ttl time.Duration) error
18 ClearFollowCache(ctx context.Context, followerID, followeeID int64) error
19 GenerateCacheKey(userID int64, relationType string, pagination domain.Pagination) string
20 GenerateCountCacheKey(userID int64, relationType string) string

Callers

nothing calls this directly

Implementers 1

relationCacheinternal/repository/cache/relation.go

Calls

no outgoing calls

Tested by

no test coverage detected