SetCacheWithNotFound set value for notfound
(ctx context.Context, key string)
| 390 | |
| 391 | // SetCacheWithNotFound set value for notfound |
| 392 | func (c *redisClusterCache) SetCacheWithNotFound(ctx context.Context, key string) error { |
| 393 | cacheKey, err := BuildCacheKey(c.KeyPrefix, key) |
| 394 | if err != nil { |
| 395 | return fmt.Errorf("BuildCacheKey error: %v, key=%s", err, key) |
| 396 | } |
| 397 | |
| 398 | return c.client.Set(ctx, cacheKey, NotFoundPlaceholder, DefaultNotFoundExpireTime).Err() |
| 399 | } |
nothing calls this directly
no test coverage detected