Skip to content

Commit 6387a86

Browse files
committed
Added missing property getter
1 parent 97ebebf commit 6387a86

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

redis/connection.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from itertools import chain
1010
from queue import Empty, Full, LifoQueue
1111
from time import time
12-
from typing import Any, Callable, List, Optional, Type, Union, Dict
12+
from typing import Any, Callable, Dict, List, Optional, Type, Union
1313
from urllib.parse import parse_qs, unquote, urlparse
1414

1515
from redis.cache import (
@@ -41,9 +41,10 @@
4141
HIREDIS_AVAILABLE,
4242
HIREDIS_PACK_AVAILABLE,
4343
SSL_AVAILABLE,
44+
compare_versions,
4445
format_error_message,
4546
get_lib_version,
46-
str_if_bytes, compare_versions,
47+
str_if_bytes,
4748
)
4849

4950
if HIREDIS_AVAILABLE:
@@ -745,7 +746,7 @@ def ensure_string(key):
745746

746747
class CacheProxyConnection(ConnectionInterface):
747748
DUMMY_CACHE_VALUE = b"foo"
748-
MIN_ALLOWED_VERSION = '7.4.0'
749+
MIN_ALLOWED_VERSION = "7.4.0"
749750

750751
def __init__(self, conn: ConnectionInterface, cache: CacheInterface):
751752
self.pid = os.getpid()
@@ -892,6 +893,10 @@ def pack_command(self, *args):
892893
def pack_commands(self, commands):
893894
return self._conn.pack_commands(commands)
894895

896+
@property
897+
def handshake_metadata(self) -> Union[Dict[bytes, bytes], Dict[str, str]]:
898+
return self._conn.handshake_metadata
899+
895900
def _connect(self):
896901
self._conn._connect()
897902

0 commit comments

Comments
 (0)