We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 723b389 commit 5a7bcb3Copy full SHA for 5a7bcb3
src/yapcache/distlock.py
@@ -4,8 +4,6 @@
4
from redis.asyncio import Redis
5
from typing_extensions import override
6
7
-from yapcache.compat import StrEnum
8
-
9
10
class DistLock:
11
async def __aenter__(self):
@@ -30,7 +28,7 @@ async def release(self):
30
28
31
29
32
class RedisDistLock(DistLock):
33
- RELEASE_LOCK_SCRIPT = f"""
+ RELEASE_LOCK_SCRIPT = """
34
if redis.call("get", KEYS[1]) == false then
35
return "not_found"
36
elseif redis.call("get", KEYS[1]) == ARGV[1] then
0 commit comments