Nosql 之 Redis(可做缓存 )
时间:2021-07-01 10:21:17
帮助过:2人阅读
void Main(
string[] args)
{
string host =
"127.0.0.1";
string elementKey =
"testKey";
int port =
6379;
RedisClient rc =
new RedisClient(host, port,
"foobared");
rc.Set(elementKey, "hello redis");
string res = rc.Get<
string>
(elementKey);
Console.WriteLine(res);
Console.ReadLine();
}
Nosql 之 Redis(可做缓存 )
标签: