Set cache
(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration)
| 66 | |
| 67 | // Set cache |
| 68 | func (c *cacheNameExampleCache) Set(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration) error { |
| 69 | cacheKey := c.getCacheKey(keyNameExample) |
| 70 | return c.cache.Set(ctx, cacheKey, &valueNameExample, duration) |
| 71 | } |
| 72 | |
| 73 | // Get cache |
| 74 | func (c *cacheNameExampleCache) Get(ctx context.Context, keyNameExample keyTypeExample) (valueTypeExample, error) { |
nothing calls this directly
no test coverage detected