Commit b1d2a1c9 authored by alain's avatar alain 🐙
Browse files
parents 421de3ad 528bbe41
......@@ -49,7 +49,7 @@ get '/sensor/:type' do
x
}
body = result.to_json
$redis.set uri, body, {:ex => 3600} #one hour TODO: maybe the number of seconds until the next whole hour?
$redis.set uri, body, {:ex => 3600}
end
body
end
......@@ -126,7 +126,7 @@ def retrieveSensorData(params)
{ds_names[index] => all_values.flatten}
}
body = all_pages.to_json
$redis.set uri, body, {:ex => 3600} #TODO: or maybe the number of seconds until the next whole hour?
$redis.set uri, body, {:ex => 3600}
end
body
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment