GetUserExampleCacheKey cache key
(id uint64)
| 63 | |
| 64 | // GetUserExampleCacheKey cache key |
| 65 | func (c *userExampleCache) GetUserExampleCacheKey(id uint64) string { |
| 66 | return userExampleCachePrefixKey + utils.Uint64ToStr(id) |
| 67 | } |
| 68 | |
| 69 | // Set write to cache |
| 70 | func (c *userExampleCache) Set(ctx context.Context, id uint64, data *model.UserExample, duration time.Duration) error { |
no test coverage detected