public static void Main (string[] args) { //host is a locally running version of redis var host = "localhost:6379"; //make a client and send a value pair RedisClient rc = new RedisClient (host); rc.SetValue ("hello", "world"); //init pubsub and listen for messages posted on foo channel var clientsManager = new PooledRedisClientManager(host); var redisPubSub = new RedisPubSubServer (clientsManager, "foo") { OnMessage = (channel, msg) => "Received '{0}' from '{1}'".Print (msg, channel), }.Start (); //keep the program alive for a bit Thread.Sleep (50000); }