The Caching the method return value recipe The Using Memcached to cache Django views recipe The Using database query expressions recipe in Chapter 11, Bells and Whistles