mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 13:07:53 +00:00
fix ci
This commit is contained in:
@@ -17,6 +17,9 @@ def default_key_builder(
|
|||||||
|
|
||||||
prefix = f"{FastAPICache.get_prefix()}:{namespace}:"
|
prefix = f"{FastAPICache.get_prefix()}:{namespace}:"
|
||||||
cache_key = (
|
cache_key = (
|
||||||
prefix + hashlib.md5(f"{func.__module__}:{func.__name__}:{args}:{kwargs}").hexdigest()
|
prefix
|
||||||
|
+ hashlib.md5( # nosec:B303
|
||||||
|
f"{func.__module__}:{func.__name__}:{args}:{kwargs}"
|
||||||
|
).hexdigest()
|
||||||
)
|
)
|
||||||
return cache_key
|
return cache_key
|
||||||
|
|||||||
Reference in New Issue
Block a user