 				qs:qs
 				json:true
 			},(e,r,b)->
-				client.set req.params.tables, JSON.stringify(b)
+				client.hset req.params.year+req.params.set,req.params.tables, JSON.stringify(b)
 				res.jsonp b
 kublai.get '/data/:view', (req,res)->
 	res.header "Access-Control-Allow-Origin", "*"

					val = parseFloat(row[0],10)
					o[0][row[1]+row[2]]=val
					o[1].push(val) if val
				client.set key, JSON.stringify(o)
				res.jsonp o
kublai.get '/docs/:year/:set',(req,res)->
	request "http://www.census.gov/developers/data/#{req.params.set.slice(0,3)}_#{req.params.set.slice(-1)}yr_#{req.params.year}_var.xml",(e,r,b)->

	model = models.filter((m)->
		return m.name==key)[0]
	#console.log model
	client.hget 'computed',key, (err,data)->
		if data
			res.jsonp(JSON.parse(data))
		else
