g_cache_create
gp = g_cache_create(mp, pp, &md, G_CACHE_TYPE_AUTOMATIC);
gp = g_cache_create(mp, pp, &md, G_CACHE_TYPE_MANUAL);