(ctx context.Context, key string, data []byte)
| 53 | } |
| 54 | |
| 55 | func (cc *LocalCertCache) Put(ctx context.Context, key string, data []byte) error { |
| 56 | cc.cache.Set(key, &certCacheValue{ |
| 57 | ts: time.Now(), |
| 58 | res: data, |
| 59 | err: nil, |
| 60 | }) |
| 61 | return cc.next.Put(ctx, key, data) |
| 62 | } |
| 63 | |
| 64 | func (cc *LocalCertCache) Delete(ctx context.Context, key string) error { |
| 65 | cc.cache.Delete(key) |