MCPcopy
hub / github.com/redis/redis-py / get_lock

Method get_lock

tests/test_lock.py:36–38  ·  view source on GitHub ↗
(self, redis, *args, **kwargs)

Source from the content-addressed store, hash-verified

34 return fake_time
35
36 def get_lock(self, redis, *args, **kwargs):
37 kwargs["lock_class"] = Lock
38 return redis.lock(*args, **kwargs)
39
40 def test_lock(self, r):
41 lock = self.get_lock(r, "foo")

Callers 15

test_lockMethod · 0.95
test_lock_tokenMethod · 0.95
test_lockedMethod · 0.95
_test_ownedMethod · 0.95
test_competing_locksMethod · 0.95
test_timeoutMethod · 0.95
test_float_timeoutMethod · 0.95
test_blocking_timeoutMethod · 0.95
test_context_managerMethod · 0.95

Calls 1

lockMethod · 0.45

Tested by

no test coverage detected