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

Method GetCountCache

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

Source from the content-addressed store, hash-verified

20 GetCacheList(ctx context.Context, key string) ([]domain.Check, error)
21 SetCacheList(ctx context.Context, key string, checks []domain.Check, ttl time.Duration) error
22 GetCountCache(ctx context.Context, key string) (int64, error)
23 SetCountCache(ctx context.Context, key string, count int64, ttl time.Duration) error
24 GenerateCacheKey(id interface{}) string
25 GeneratePaginationCacheKey(pagination domain.Pagination) string

Callers 2

GetFolloweeCountMethod · 0.65
GetFollowerCountMethod · 0.65

Implementers 1

checkCacheinternal/repository/cache/check.go

Calls

no outgoing calls

Tested by

no test coverage detected