Modified examples to use createCache method (as part of resolution of Spec Issue 226)