lru_cache prefix_redis_token
This commit is contained in:
parent
e01e1ebcb7
commit
4b2cec3784
@ -3141,6 +3141,7 @@ def _default_lock_expiration() -> int:
|
|||||||
TOKEN_TYPE = TypeVar("TOKEN_TYPE", str, bytes)
|
TOKEN_TYPE = TypeVar("TOKEN_TYPE", str, bytes)
|
||||||
|
|
||||||
|
|
||||||
|
@functools.lru_cache
|
||||||
def prefix_redis_token(token: TOKEN_TYPE) -> TOKEN_TYPE:
|
def prefix_redis_token(token: TOKEN_TYPE) -> TOKEN_TYPE:
|
||||||
"""Prefix the token with the redis prefix.
|
"""Prefix the token with the redis prefix.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user