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

Method GetCountCache

internal/repository/cache/relation.go:16–16  ·  view source on GitHub ↗
(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

14 GetCache(ctx context.Context, key string) ([]domain.Relation, error)
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

Callers

nothing calls this directly

Implementers 1

relationCacheinternal/repository/cache/relation.go

Calls

no outgoing calls

Tested by

no test coverage detected