Redis__20150616__windows in the installation __ command line __ Multiple databases

Source: Internet
Author: User
1, installed in Windows first download Cygwin, in accordance with the book operation can be. For net.c files, refer to http://my.oschina.net/maxid/blog/186506 for modification. can then start normally. 2, command line (1) Send command: Open Redis-server.exe, directly in the Redis-cli.exe command line operation.? (2) command return value: ①: Status Reply 127 ... (after omitting writing) >ping Pong②: Error reply 127. .. >errorcommand (Error) ERR unknown command ' errorcommand ' ③: integer reply 127...>incr foo<integer> 2?④: String Reply 127 ... >get foo "1"? If the key value does not exist, it is displayed as (nil) 127...>get noexists (nil) ⑤: Multi-line string reply 3, multi-database? Redis default support 16 databases, you can choose, the default automatically select No. 0 database? (1): Custom database names are not supported and can only be named by number. (2): Setting access password for each database is not supported. Either you can access it all, or you can't access it. (3): Multiple databases are not completely isolated, like a namespace, and are not suitable for storing data from different applications. For example, the Flushall command clears all data from a Redis instance. Different applications should use different Redis instances to store data. (4): Redis is very lightweight, and an empty Redis instance consumes only about 1MB of memory, without worrying that multiple instances will consume a lot of memory.

Redis__20150616__windows in the installation __ command line __ Multiple databases

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.