You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Small style changes
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
// Sending commands in response to other commands.
|
||||
// This example runs "type" against every key in the database
|
||||
// This example runs 'type' against every key in the database
|
||||
//
|
||||
var client = require("redis").createClient();
|
||||
var client = require('redis').createClient();
|
||||
|
||||
client.keys("*", function (err, keys) {
|
||||
client.keys('*', function (err, keys) {
|
||||
keys.forEach(function (key, pos) {
|
||||
client.type(key, function (err, keytype) {
|
||||
console.log(key + " is " + keytype);
|
||||
console.log(key + ' is ' + keytype);
|
||||
if (pos === (keys.length - 1)) {
|
||||
client.quit();
|
||||
}
|
||||
|
Reference in New Issue
Block a user