cache usage example compatibility improved