Get cache
(ctx context.Context, keyNameExample keyTypeExample)
| 72 | |
| 73 | // Get cache |
| 74 | func (c *cacheNameExampleCache) Get(ctx context.Context, keyNameExample keyTypeExample) (valueTypeExample, error) { |
| 75 | var valueNameExample valueTypeExample |
| 76 | cacheKey := c.getCacheKey(keyNameExample) |
| 77 | err := c.cache.Get(ctx, cacheKey, &valueNameExample) |
| 78 | if err != nil { |
| 79 | return valueNameExample, err |
| 80 | } |
| 81 | return valueNameExample, nil |
| 82 | } |
| 83 | |
| 84 | // Del delete cache |
| 85 | func (c *cacheNameExampleCache) Del(ctx context.Context, keyNameExample keyTypeExample) error { |
nothing calls this directly
no test coverage detected