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

Function CacheArray_CleanEntry

src/util/cache/cache_array.c:36–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void CacheArray_CleanEntry(CacheEntry *entry, CacheEntryFreeFunc free_entry) {
37 ASSERT(entry != NULL);
38 ASSERT(free_entry != NULL);
39
40 if(entry->key != NULL) {
41 rm_free(entry->key);
42 entry->key = NULL;
43 }
44
45 if(entry->value != NULL) {
46 free_entry(entry->value);
47 entry->value = NULL;
48 }
49
50 entry->LRU = 0;
51}
52

Callers 1

_CacheEvictLRUFunction · 0.85

Calls 1

rm_freeFunction · 0.85

Tested by

no test coverage detected