Fix caching doctest.
Adjust API docs.