Use Stackexchange.redis to implement. NET calls to a Redis cluster by using the following method:
1. Open Project-Manage NuGet Packages
2. Search Stackexchange.redis in Open Interface, find Stackexchange.redis package, click Install
3. The following errors are indicated during the installation process
4, find Stackexchange.redis instructions, view dependencies, found that the version does not support Framework4.0, find the historical version, found 1.2.1 version
5. Open the tool-nuget Package Manager-Package Manager console, enter the installation command in the package console: Install-package stackexchange.redis-version 1.2.1 Performing the installation
6. The following exception occurred during the execution of the installation
INSTALL-PACKAGE:MICROSOFT.BCL 1.1.10 package requires NuGet client version 2.8.1 or later
The solution is as follows: vs2013----tools------Extensions and updates-----updates.
7, update the completion of the restart visual, repeat the above installation command.
8. Perform the following test methods
9. Get access Results
. NET calls to a Redis cluster (framework version 4.0)