2.4.redis-读数据流程概述

get command流程概述

  • 流程调用以redis5.0版本为例,set command流程如下:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
dictFind dict.c:483
lookupKey db.c:56
lookupKeyReadWithFlags db.c:133
lookupKeyRead db.c:144
lookupKeyReadOrReply db.c:158
getGenericCommand t_string.c:160
getCommand t_string.c:173
call server.c:2478
processCommand server.c:2785
processInputBuffer networking.c:1466
processInputBufferAndReplicate networking.c:1501
readQueryFromClient networking.c:1583
aeProcessEvents ae.c:443
aeMain ae.c:501
main server.c:4437
start 0x00007fff6957ecc9