src/graph/graphcontext.c
// Return cache associated with graph context and current thread id.
Return cache associated with graph context and current thread id.
Return cache associated with graph context and current thread id .
Cache *GraphContext_GetCache(const GraphContext *gc) {
	assert(gc);
	int thread_id = thpool_get_thread_id(_thpool, pthread_self());
	thread_id += 1; 
	return gc->cache_pool[thread_id];
}
Cache * GraphContext_GetCache ( const GraphContext * gc ) { assert ( gc ) ; int thread_id = thpool_get_thread_id ( _thpool , pthread_self ( ) ) ; thread_id += 1 ; return gc -> cache_pool [ thread_id ] ; }
Return cache associated with graph context and current thread id.
Return cache associated with graph context and current thread id .
/* thpool_get_thread_id returns -1 if pthread_self isn't in the thread pool
	* most likely Redis main thread */ // +1 to compensate for Redis main thread.