Basic Caching Middleware

I wrote some basic caching middleware... perhaps someone may find it useful. Please consider accepting it into your repository.