MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / Del

Method Del

internal/cache/userExample.go:135–142  ·  view source on GitHub ↗

Del delete cache

(ctx context.Context, id uint64)

Source from the content-addressed store, hash-verified

133
134// Del delete cache
135func (c *userExampleCache) Del(ctx context.Context, id uint64) error {
136 cacheKey := c.GetUserExampleCacheKey(id)
137 err := c.cache.Del(ctx, cacheKey)
138 if err != nil {
139 return err
140 }
141 return nil
142}
143
144// SetPlaceholder set placeholder value to cache
145func (c *userExampleCache) SetPlaceholder(ctx context.Context, id uint64) error {

Callers

nothing calls this directly

Calls 2

DelMethod · 0.65

Tested by

no test coverage detected