Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Commit

Permalink
try and qualify for rdb snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
brysgo authored Sep 6, 2019
1 parent 3f37066 commit 5b8ff17
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions redis/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ redisClient.on("error", function(err) {
redisClient.set("string key", "string val", redis.print);
redisClient.hset("hash key", "hashtest 1", "some value", redis.print);
redisClient.hset(["hash key", "hashtest 2", "some other value"], redis.print);

Array.from({length: 10000}).forEach(function(i) {
redisClient.set("key: " + i, "val: " + i, redis.print);
});
setTimeout(function() {
Array.from({length: 10000}).forEach(function(i) {
redisClient.set("key: " + i, "val: " + i, redis.print);
});
}, 120000);
redisClient.hkeys("hash key", function (err, replies) {
console.log(replies.length + " replies:");
replies.forEach(function (reply, i) {
Expand Down

0 comments on commit 5b8ff17

Please sign in to comment.