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

Method SetPlaceholder

internal/cache/userExample.go:145–148  ·  view source on GitHub ↗

SetPlaceholder set placeholder value to cache

(ctx context.Context, id uint64)

Source from the content-addressed store, hash-verified

143
144// SetPlaceholder set placeholder value to cache
145func (c *userExampleCache) SetPlaceholder(ctx context.Context, id uint64) error {
146 cacheKey := c.GetUserExampleCacheKey(id)
147 return c.cache.SetCacheWithNotFound(ctx, cacheKey)
148}
149
150// IsPlaceholderErr check if cache is placeholder error
151func (c *userExampleCache) IsPlaceholderErr(err error) bool {

Callers

nothing calls this directly

Calls 2

SetCacheWithNotFoundMethod · 0.65

Tested by

no test coverage detected