Initialize the Cache Middleware
The Cache middleware will make a CacheManager instance available every request under the environ['beaker.cache'] key by default. The location in environ can be changed by setting environ_key.
Initialize the Session Middleware
The Session middleware will make a lazy session instance available every request under the environ['beaker.session'] key by default. The location in environ can be changed by setting environ_key.