(ctx context.Context, key string, data []byte)
| 39 | } |
| 40 | |
| 41 | func (r *RedisCache) Put(ctx context.Context, key string, data []byte) error { |
| 42 | return r.r.Set(ctx, r.pfx+key, data, 0).Err() |
| 43 | } |
| 44 | |
| 45 | func (r *RedisCache) Delete(ctx context.Context, key string) error { |
| 46 | return r.r.Del(ctx, r.pfx+key).Err() |