cache key
(keyNameExample keyTypeExample)
| 61 | |
| 62 | // cache key |
| 63 | func (c *cacheNameExampleCache) getCacheKey(keyNameExample keyTypeExample) string { |
| 64 | return fmt.Sprintf("%s%v", cacheNameExampleCachePrefixKey, keyNameExample) |
| 65 | } |
| 66 | |
| 67 | // Set cache |
| 68 | func (c *cacheNameExampleCache) Set(ctx context.Context, keyNameExample keyTypeExample, valueNameExample valueTypeExample, duration time.Duration) error { |