Second, Redis service in C # Redis Combat (a) I copied all the files to the D-Disk Redis folder, where Redis-server.exe is the server program, double-click to start running, you can set this service as Windows system services, download Redis Service installation software, installation can be. The installation finishes locating the service in the service and setting it to automatically delay startup.
Go back to the Redis folder and find the Redis-cli.exe file, which is the Redis client program. Open, Input: Set Qiujialong 123
That is, in Redis, a key is inserted into the data Qiujialong,value 123, continue to enter: Get Qiujialong The value of the saved data 123. If you want to know how many data are saved in Redis, you can use: Keys * to query:
The above is the installation of the Redis service and its basic operations, and the next article will describe how to use C # to complete the development of Redis distributed cache. Transferred from: http://www.cnblogs.com/davidgu/archive/2013/08/16/3262571.html
C # Redis Combat (ii) [Turn]