// ConfigurationOptions using StackExchange.Redis;
ConfigurationOptions config = ConfigurationOptions.Parse("127.0.0.1:6379"); var conn = ConnectionMultiplexer.Connect(config.ToString());
var db = conn.GetDatabase();
// Set String stringvalue = "Hello World"; db.StringSet("Test", value);
// Get String string test = db.StringGet("Test");
// Set Hash db.HashSet("Hash1", new HashEntry[] { new HashEntry("key1",@"{""Images"":[{""Title"":""title1"",""Context"":""context1""},{""Title"":""title2"",""Context"":""context2""}]}"), new HashEntry("key2",@"{""Images"":[{""Title"":""title3"",""Context"":""context3""},{""Title"":""title4"",""Context"":""context4""}]}"), });
// Get Hash string key1 = db.HashGet("Hash1", "key1");