A short video showing how you can test and implement Zend_Cache on a class that makes a really slow request (like a web service call).
This is part 4 in a four part series on Google Docs and Google maps. While this example shows how to cache a Class to a file, you could easily modify the code to work with other caching backends such as a memory-based caching engine or something like Zend Optimizer or APC.
Previous Parts
Part 1 – Introduction to the Google Docs APIPart 2 – Geotargetting with the Google Maps APIPart 3 – Using Google Maps with Zend_GDataShow Synopsis
0:00 – What is caching4:15 – preparing our bootstrap (for later on)6:25 – Reviewing the class we want to unit test10:25 – writing our first iteration of the Zend_Cache13:22 – front options and back options15:00 – looking at what Zend_Cache is caching18:25 – Moving caching into the bootstrap