Getting started with Redis

Source: Internet
Author: User

Getting started with Redis

I. Software Installation

Redis: https://github.com/MSOpenTech/redis/releases

Because windows is not officially supported, You need to download it from Microsoft's GitHub.

Decompressed folder content (version 3.2.100 ):

The most common file is redis-server.exe‑redis-cli.exe and a configuration file redis. windows. conf or redis. windows-service.conf.

1. Start redisservice and run cmd.exe

Go to the redis folder

cd desttop/redis

Start redis-server.exe and use the configuration file, as shown in.

redis-server.exe redis.windows.conf

2. Start the client and then start cmd.exe.

Start redis-cli.exe after the folder is inserted.

redis-cli.exe

In international practice, ping helloworld to unlock and master redis achievements.

 

3) Why is port 6379 used by default?

Redis author antirez said on twitter that he would explain in the next blog (http://oldblog.antirez.com/post/redis-as-LRU-cache.html) why he chose 6379 as the default port number. Now, this blog post explains the LRU mechanism of Redis and explains the reasons for using 6379 as the default port as scheduled. 6379 indicates the number corresponding to MERZ on the mobile phone button, and MERZ is taken from the name of Alessia Merz, an Italian karaoke girl. MERZ has long been synonymous with antirez and its friends as stupid.

Ii. Basic usage

III. C # Use Redis

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.