chore(cache): Add some nice new internal APIs for caching