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

Interface HistoryCache

internal/repository/cache/history.go:26–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24)
25
26type HistoryCache interface {
27 SetCache(ctx context.Context, history domain.History) error
28 GetCache(ctx context.Context, pagination domain.Pagination) ([]domain.History, error)
29 DeleteOneCache(ctx context.Context, postId uint, uid int64) error
30 DeleteAllHistory(ctx context.Context, uid int64) error
31}
32
33type historyCache struct {
34 logger *zap.Logger

Callers 1

DeleteOneHistoryMethod · 0.65

Implementers 1

historyCacheinternal/repository/cache/history.go

Calls

no outgoing calls

Tested by

no test coverage detected