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.
- Part 1 – Introduction to the Google Docs API
- Part 2 – Geotargetting with the Google Maps API
- Part 3 – Using Google Maps with Zend_GData
- 0:00 – What is caching
- 4:15 – preparing our bootstrap (for later on)
- 6:25 – Reviewing the class we want to unit test
- 10:25 – writing our first iteration of the Zend_Cache
- 13:22 – front options and back options
- 15:00 – looking at what Zend_Cache is caching
- 18:25 – Moving caching into the bootstrap