lru_cache prefix_redis_token

This commit is contained in:
Benedikt Bartscher 2024-11-21 02:47:25 +01:00
parent e01e1ebcb7
commit 4b2cec3784
No known key found for this signature in database

View File

@ -3141,6 +3141,7 @@ def _default_lock_expiration() -> int:
TOKEN_TYPE = TypeVar("TOKEN_TYPE", str, bytes)
@functools.lru_cache
def prefix_redis_token(token: TOKEN_TYPE) -> TOKEN_TYPE:
"""Prefix the token with the redis prefix.