create the cache in the main