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. If you want to reprint, please specify the source, this series of blog sample program http://blog.csdn.net/qiujialongjjj/article/details/16979887
C # Redis Combat (ii)