MCPcopy Create free account
hub / github.com/RedisGears/RedisGears / PythonSessionCtx_Set

Function PythonSessionCtx_Set

plugins/python/redisgears_python.c:795–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795static void PythonSessionCtx_Set(PythonSessionCtx* s){
796 pthread_mutex_lock(&PySessionsLock);
797 PythonSessionCtx_Del(s);
798 RedisModule_DictSetC(SessionsDict, s->sessionId, strlen(s->sessionId), s);
799 s->linkedTo = LinkedTo_PrimaryDict;
800 pthread_mutex_unlock(&PySessionsLock);
801}
802
803static int PythonSessionCtx_DownloadWheels(PythonSessionCtx* session){
804 for(size_t i = 0 ; i < array_len(session->requirements) ; ++i){

Callers 2

Python_SetCurrSessionFunction · 0.85

Calls 1

PythonSessionCtx_DelFunction · 0.85

Tested by

no test coverage detected