[Redis Reading notes] Part two stand-alone database

Source: Internet
Author: User

A command issued by the implementation

REDIS.C, you can see the implementation of rediscommandtable[], listing all supported commands. Most of the incoming parameters are redisclient *c, and when a Redis command is issued, the call flow is as follows

In the createclient will assemble the next client, which will call Selectdb () to select the database, and the database stores a dictionary structure dict *dict, the key in this dict is the key to execute the Redis command, the value is the Redis object robj.

REDISDB structure as follows, is already an abstract diagram, such as hashobject, theoretically there should be a REDISOBJCT structure, and then PTR refers to a dict structure, and then to a entry and so on:

Then all the read, add, update to the DB is now redisdb.dict/new key value (the object's key value) (such as book), and then update the dict in the corresponding key in the value (RobJ, such as Hashobject) in the content (such as name, Author or publisher).

[Redis Reading notes] Part two stand-alone database

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.