. NET distributed cache Redis from getting started to combat

Source: Internet
Author: User

I. Introduction of the Course

Today, Stupid brings you a nosql course, the main character of this issue is redis. I hope you will have a basic understanding and understanding of Redis after this sharing course, and be familiar with and master the use of Redis in. Net. This sharing course contains the following points of knowledge:

1, Stackexchange.redis (short: SE) drive in C # Redis several data structures to learn and use.

2, Servicestack.redis (abbreviation: SS) drive in C # Redis several data structures to learn and use.

3, Redis master-slave Cluster Server building and learning.

4. How does Redis perform session hosting in ASP.

5. How to use the producer/consumer of Redis in C #.

6. How to use the Publish/Subscribe feature of Redis in C #.

7. How to use Redis transactions, locks in C #.

If you share the same for this time. NET distributed cache Redis from the introductory to the actual combat course, then please study with AH-dum.

Needless to say, directly on dry goods, we do not produce dry goods, we are just dry goods porter.

Ii. explanation of the meaning of concept name

2.1. What is Redis?

Redis is an open source, written in C, for "key/value" type data distributed NoSQL database system, Redis purely for the application, it is a high-performance Key-value database, characterized by high performance, persistent storage, adapt to high concurrency of the application scenario, And it provides APIs in multiple languages.

Redis Official website: https://redis.io/

Multilingual client-side driver download: https://redis.io/clients

2.2. Features of Redis

Redis is fully open source free, adheres to the BSD protocol and is a high-performance Key-value database. The following three features are available with other Key-value cache products:

Redis supports data persistence, which saves data in memory on disk and can be loaded again for use when restarting.

Redis not only supports simple key-value types of data, but also provides storage of data structures such as List,set,zset,hash.

Redis supports backup of data, that is, Master-slave mode of data backup.

III. Redis for Windows installation manual

3.1. Redis installation on Windows systems

The official website only provides the Linux version of the download official website: http://redis.io/download

Windows version of Github:https://github.com/msopentech/redis/tags

Here are a few of the recommended sites to learn about Redis:

Redis Chinese web: http://www.redis.net.cn/

Web site where Redis directives can be written online: http://try.redis.io/http://doc.redisfans.com/

3.2, Redis server master-slave cluster construction

Iv. several data structures of Redis

1, String (strings)

This is the simplest type of redis. If only this type is used, Redis is like a memcached server that can be persisted.

2. List (lists)

The Redis list is based on a doubly linked list and can support reverse lookups and traversal.

Common cases: Chat system, social network to get the latest posts from users, simple message queue, news page list, blog comment System.

3, hash (hashed)

Hash is a string-type mapping table between field and value, see, similar to. NET in Hashtable and dictionary. Primarily used to store objects, you can avoid the overhead of serialization and the problem of concurrency modification control.

4. Set (SET)

Set is also a list, but what is special about it is that it can be automatically drained: set is a good choice (such as a collection of IDs) when you need to store a list of data and do not want duplicates to occur. and set provides an interface that determines whether a member is within a set set, which is not what the list does.

5. Sorted set (ordered set)

Sorted set and set are similar in usage scenarios, except that Sorted set is automatically sorted according to the score parameters provided. When you need a list of ordered and non-repeating collections, you can choose the sorted set data structure. Common case: The leaderboard in the game.

Introduction to Redis Application scenario Vi. use of Redis in. NET six, Redis combat walkthrough Sharing

1, Stackexchange.redis (SE) drive in C # Redis several data structures to learn and use.

2, Servicestack.redis (SS) drive in C # Redis several data structures to learn and use.

3, Redis master-slave Cluster Server building and learning.

4. How does Redis perform session hosting in ASP.

5. How to use the producer/consumer of Redis in C #.

6. How to use the Publish/Subscribe feature of Redis in C #.

7. How to use Redis transactions, locks in C #.

Vii. source code online learning and presentation

. NET distributed cache Redis from getting started to combat

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.