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

Method ClearCache

internal/repository/cache/check.go:74–76  ·  view source on GitHub ↗

ClearCache 清除缓存中的指定键

(ctx context.Context, key string)

Source from the content-addressed store, hash-verified

72
73// ClearCache 清除缓存中的指定键
74func (c *checkCache) ClearCache(ctx context.Context, key string) error {
75 return c.client.Del(ctx, key).Err()
76}
77
78func (c *checkCache) DeleteKeysWithPattern(ctx context.Context, pattern string) error {
79 var cursor uint64

Callers

nothing calls this directly

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected