This repository contains a working cache example in php for http://stackoverflow.com/q/19067856/838733.