ClearCache 清除缓存中的指定键
(ctx context.Context, key string)
| 72 | |
| 73 | // ClearCache 清除缓存中的指定键 |
| 74 | func (c *checkCache) ClearCache(ctx context.Context, key string) error { |
| 75 | return c.client.Del(ctx, key).Err() |
| 76 | } |
| 77 | |
| 78 | func (c *checkCache) DeleteKeysWithPattern(ctx context.Context, pattern string) error { |
| 79 | var cursor uint64 |