MCPcopy
hub / github.com/redis/redis-py / get_protocol_version

Function get_protocol_version

redis/commands/helpers.py:128–132  ·  view source on GitHub ↗
(client)

Source from the content-addressed store, hash-verified

126
127
128def get_protocol_version(client):
129 if isinstance(client, redis.Redis) or isinstance(client, redis.asyncio.Redis):
130 return client.connection_pool.connection_kwargs.get("protocol")
131 elif isinstance(client, redis.cluster.AbstractRedisCluster):
132 return client.nodes_manager.connection_kwargs.get("protocol")
133
134
135def get_legacy_responses(client):

Callers 14

vsimMethod · 0.90
vembMethod · 0.90
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
__init__Method · 0.50
_parse_resultsMethod · 0.50
searchMethod · 0.50
searchMethod · 0.50
__init__Method · 0.50

Calls 1

getMethod · 0.45

Tested by

no test coverage detected