MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / CacheObj_New

Function CacheObj_New

tests/unit/test_cache.c:24–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22} CacheObj;
23
24CacheObj *CacheObj_New(const char *str) {
25 CacheObj *obj = (CacheObj *)rm_malloc(sizeof(CacheObj));
26 obj->str = str;
27 return obj;
28}
29
30CacheObj *CacheObj_Dup(const CacheObj *obj) {
31 CacheObj *dup = (CacheObj *)rm_malloc(sizeof(CacheObj));

Callers 1

test_executionPlanCacheFunction · 0.85

Calls 1

rm_mallocFunction · 0.85

Tested by

no test coverage detected