辅助方法: 释放分布式锁
(ctx context.Context, lockKey string)
| 450 | |
| 451 | // 辅助方法: 释放分布式锁 |
| 452 | func (c *postCache) releaseLock(ctx context.Context, lockKey string) { |
| 453 | _ = c.client.Del(ctx, lockKey) |
| 454 | } |
| 455 | |
| 456 | func (c *postCache) key(key string) string { |
| 457 | return c.prefix + key |
no test coverage detected