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

Method SetCache

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

Source from the content-addressed store, hash-verified

15type CheckCache interface {
16 GetCache(ctx context.Context, key string) (*domain.Check, error)
17 SetCache(ctx context.Context, key string, check domain.Check, ttl time.Duration) error
18 ClearCache(ctx context.Context, key string) error
19 DeleteKeysWithPattern(ctx context.Context, pattern string) error
20 GetCacheList(ctx context.Context, key string) ([]domain.Check, error)

Callers 3

ListFollowerRelationsMethod · 0.65
ListFolloweeRelationsMethod · 0.65
SetHistoryMethod · 0.65

Implementers 1

checkCacheinternal/repository/cache/check.go

Calls

no outgoing calls

Tested by

no test coverage detected