This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pipeline pipeline = jedis.pipelined(); | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < 100000; i++) { | |
pipeline.set("" + i, "" + i); | |
} | |
List<Object> results = pipeline.execute(); | |
long end = System.currentTimeMillis(); | |
System.out.println("Pipelined SET: " + ((end - start)/1000.0) + " seconds"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var connection = require('amqp').createConnection({host: 'localhost'}); | |
connection.on('ready', function() { | |
// create a temporary queue by passing an empty string as the queue name | |
var queue = connection.queue('', function(queue) { | |
console.log('connected to ' + queue.name); | |
// bind the queue to all messages on the amq.rabbitmq.log topic exchange | |
queue.bind('amq.rabbitmq.log', '#'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match p:Person, l:Location | |
where p.first_name! = {first_name} and l.location = {location} | |
create p-[:LIVES_IN]->l |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create n:Person {name: "Bob", updated: timestamp()} | |
return n |