MCPcopy
hub / github.com/bsm/redislock / lockKey

Method lockKey

redislock_test.go:454–461  ·  view source on GitHub ↗
(suffix ...string)

Source from the content-addressed store, hash-verified

452}
453
454func (rc *testRedis) lockKey(suffix ...string) string {
455 key := fmt.Sprintf("__bsm_redislock_%d__", lockInc.Add(1))
456 if len(suffix) > 0 {
457 key += suffix[0]
458 }
459 rc.keys = append(rc.keys, key)
460 return key
461}
462
463func redisConnect(t *testing.T) *testRedis {
464 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected