redistc#连接
NuGet先安装StackExchange.Redis.StrongName
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("127.0.0.1:6379,password=mima"); IDatabase db
= redis.GetDatabase(2);if (db.StringSet("testKey", "ssssss22222")) {
var val = db.StringGet("testKey"); Console.WriteLine(val);
}
以上是 redistc#连接 的全部内容, 来源链接: utcz.com/z/509624.html