MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / releaseLock

Method releaseLock

internal/repository/cache/post.go:452–454  ·  view source on GitHub ↗

辅助方法: 释放分布式锁

(ctx context.Context, lockKey string)

Source from the content-addressed store, hash-verified

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

Callers 2

SetPubListMethod · 0.95
SetPubMethod · 0.95

Calls 1

DelMethod · 0.65

Tested by

no test coverage detected