MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / get_client

Method get_client

core/utils.py:213–217  ·  view source on GitHub ↗

Get Redis client optimized for non-binary data (decoded responses)

(cls, max_retries=5, retry_interval=1)

Source from the content-addressed store, hash-verified

211
212 @classmethod
213 def get_client(cls, max_retries=5, retry_interval=1):
214 """Get Redis client optimized for non-binary data (decoded responses)"""
215 if cls._client is None:
216 cls._client = cls._init_client(decode_responses=True, max_retries=max_retries, retry_interval=retry_interval)
217 return cls._client
218
219 @classmethod
220 def get_buffer(cls, max_retries=5, retry_interval=1):

Callers 15

acquire_task_lockFunction · 0.80
release_task_lockFunction · 0.80
is_task_lock_heldFunction · 0.80
_renew_loopMethod · 0.80
dispatch_event_systemFunction · 0.80
scan_and_process_filesFunction · 0.80
fetch_channel_statsFunction · 0.80
fetch_channel_statsFunction · 0.80
__init__Method · 0.80
__init__Method · 0.80
_get_m3u_profileFunction · 0.80

Calls 1

_init_clientMethod · 0.80

Tested by

no test coverage detected