Fix Cache documentation

Fixed malformed code snippets, formatted whitespace and changed invalid external link.

I have signed and agree to the terms of the SpringSource Individual Contributor License Agreement.