Set an item in the redis cache
(ctx context.Context, key string, value string, ttl time.Duration)
| 39 | |
| 40 | // Set an item in the redis cache |
| 41 | func (cache *memoryCache) Set(ctx context.Context, key string, value string, ttl time.Duration) error { |
| 42 | ctx, span := cache.tracer.Start(ctx) |
| 43 | defer span.End() |
| 44 | |
| 45 | cache.store.Set(key, value, ttl) |
| 46 | return nil |
| 47 | } |