var redis = require('redis');
var client = redis.createClient();

client.on('connect', function() {
	client.didConnected = true
    console.log('connected', client.didConnected);
    client.set('framework', JSON.stringify({alpha:'AngularJS'}), function(err, reply) {
	  console.log(reply);
	  client.get('framework', function(err, reply) {
		    console.log(JSON.parse(reply));
		});

	});

});
