Adding couchdb cache implementation