The complete example for cache factory.
Made the doc formatting a little stronger.