Skip to content
EmilyEdna edited this page Jan 19, 2020 · 11 revisions

Get started quickly!

1. How to get?


Download the latest version on Nuget。

2. How to use cache engineering

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

3. How to use XCore

The methods under the XCore domain name are presented as extension methods, so you can use them only by introducing them.

4. How to use XExpres

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.

5. How to use XPlus

The methods under the XPlus domain name are all static methods, so you only need to introduce them to use them.

6. How to use FluentHttp

var data = HttpMultiClient.HttpMulti
   .InitCookieContainer()
   .Headers("name","test")
   .AddNode("https://api.uixsj.cn/hitokoto/w.php?code=json",RequestType.GET,true)
   .Build().CacheTime().RunBytes();