-
Notifications
You must be signed in to change notification settings - Fork 1
Home
EmilyEdna edited this page Jan 19, 2020
·
11 revisions
Download the latest version on Nuget。
When using Redis as a cache, please configure the Redis link. If you use MongoDB, you need to configure the database name, like this
{
"RedisConnectionString": "127.0.0.1:6379",
"MongoDBConnectionString": "mongodb://127.0.0.1:27017",
"MongoDbName": "ConfigerDb"
}
Under the Caches file and for
Caches.RedisConnectionString="";
Cache.MongoDBConnectionString="";
Caches.DbName="";
Set value for corresponding cache
The methods under the XCore domain name are presented as extension methods, so you can use them only by introducing them.
The methods under the XExpres domain name are all general expression methods presented as static methods, so you can use them only by introducing them.
The methods under the XPlus domain name are all static methods, so you only need to introduce them to use them.
var data = HttpMultiClient.HttpMulti
.InitCookieContainer()
.Headers("name","test")
.AddNode("https://api.uixsj.cn/hitokoto/w.php?code=json",RequestType.GET,true)
.Build().CacheTime().RunBytes();