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.
Merge pull request #1566 from guywarner/patch-1

Update cache docs to match examples