foundations for cache.