Memcache Redis Cache Learning Notes

Source: Internet
Author: User
Tags redis cluster redis server

0. The difference between Redis and memcache

A, Redis can store objects other than string, such as List,hash, etc.

b, when the server is down, Redis will persist the memory data to disk, and Memcache will not

1. Redis Installation

A, RZ Redis.gz.tar

B, Tar decompression

c, make compile

D,./redis-server & Server Start-up

E, REDIS-CLI client startup

1) Notice: Note that the default startup Redis-server redis.conf will error,

Reason reference Redis has three ways to start: http://www.tuicool.com/articles/aQbQ3u

2) 3. After starting Redis server, SecureCRT enters REDIS-CLI, and the input continues to append ip:port display
Set the current session options-->terminal-->emulation-->terminal for Linux

2. redis.conf configuration file

Automatically save data on Redis

3, Redis deposit list and other complex numbers, data objects

If the list type is saved:

Deposit: Lpush technolegy zzu bbu CCU removed: Lrange technolegy 0 2

4. Redis Cluster

5. Discussion on Redis

5. Redis Learning Materials

Redis Command parameters: Redis Command Reference release 2.8

Redis Official website: http://www.redis.io/

Memcache Redis Cache Learning Notes

Related Article

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.