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

Function PythonRecord_Serialize

plugins/python/redisgears_python.c:6990–6998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6988}
6989
6990static int PythonRecord_Serialize(ExecutionCtx* ectx, Gears_BufferWriter* bw, Record* base){
6991 PythonRecord* r = (PythonRecord*)base;
6992 char* err = NULL;
6993 if(RedisGearsPy_PyObjectSerialize(r->obj, bw, &err) != REDISMODULE_OK){
6994 RedisGears_SetError(ectx, err);
6995 return REDISMODULE_ERR;
6996 }
6997 return REDISMODULE_OK;
6998}
6999
7000static void PythonRecord_Free(Record* base){
7001 PythonRecord* record = (PythonRecord*)base;

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected