A stateless app server example (in Python) that demonstrates caching with Cloudant and Redis. This repo also includes a _changes feed listener that will invalidate the cache for replication-derived changes in real time.
Check out the replication tutorial.