MCPcopy
hub / github.com/benoitc/gunicorn / _get_client

Function _get_client

gunicorn/dirty/stash.py:439–446  ·  gunicorn/dirty/stash.py::_get_client

Get or create a thread-local stash client.

()

Source from the content-addressed store, hash-verified

437
438
439def _get_client():
440 class="st">""class="st">"Get or create a thread-local stash client."class="st">""
441 client = getattr(_thread_local, &class="cm">#x27;stash_client', None)
442 if client is None:
443 socket_path = get_stash_socket_path()
444 client = StashClient(socket_path)
445 _thread_local.stash_client = client
446 return client
447
448
449class="cm"># Module-level functions that use the thread-local client

Callers 11

putFunction · 0.85
getFunction · 0.85
deleteFunction · 0.85
keysFunction · 0.85
clearFunction · 0.85
infoFunction · 0.85
ensureFunction · 0.85
existsFunction · 0.85
delete_tableFunction · 0.85
tablesFunction · 0.85
tableFunction · 0.85

Calls 2

get_stash_socket_pathFunction · 0.85
StashClientClass · 0.85

Tested by

no test coverage detected