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

Function PythonSessionCtx_Get

plugins/python/redisgears_python.c:785–793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

783}
784
785static PythonSessionCtx* PythonSessionCtx_Get(const char* id){
786 pthread_mutex_lock(&PySessionsLock);
787 PythonSessionCtx* ret = RedisModule_DictGetC(SessionsDict, (char*)id, strlen(id), NULL);
788 if (ret) {
789 ret = PythonSessionCtx_ShallowCopy(ret);
790 }
791 pthread_mutex_unlock(&PySessionsLock);
792 return ret;
793}
794
795static void PythonSessionCtx_Set(PythonSessionCtx* s){
796 pthread_mutex_lock(&PySessionsLock);

Callers 5

RedisGearsPy_ExecuteFunction · 0.85
Python_UnlinkSessionFunction · 0.85

Calls 1

Tested by

no test coverage detected