Update cache docs to match examples

The first part of the documentation sets short and long as caches, but in the example code longterm is used. Switch longterm to long.