1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Add use strict statements

This is going to improve the performance minimal and improves the safety of the code
This commit is contained in:
Ruben Bridgewater
2015-07-22 16:17:02 +02:00
parent e34debd6ee
commit 1f9e536ca0
37 changed files with 76 additions and 2 deletions

View File

@@ -1,3 +1,5 @@
'use strict';
// A simple web server that generates dyanmic content based on responses from Redis
var http = require("http"), server,
@@ -7,9 +9,9 @@ server = http.createServer(function (request, response) {
response.writeHead(200, {
"Content-Type": "text/plain"
});
var redis_info, total_requests;
redis_client.info(function (err, reply) {
redis_info = reply; // stash response in outer scope
});