valve for storing tomcat responses in memcached.