Skip to content

Commit 13a89cc

Browse files
committed
better key structure
1 parent eba1832 commit 13a89cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/routers/lib/cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def wrapper(func):
127127
@wraps(func)
128128
async def wrapped(*args, **kwargs):
129129
key_parts = list(args) + list(kwargs.keys()) + list(kwargs.values())
130-
key = f'{[func.__name__]}:{"-".join(str(k) for k in key_parts)}'
130+
key = f'{func.__name__}:{"-".join(str(k) for k in key_parts)}'
131131
result = store.get(key)
132132

133133
if result is None or not production_environment:

0 commit comments

Comments
 (0)