Docs cache factory

Updated the $cacheFactory documentation to include a working example.