设为首页 - 加入收藏  
您的当前位置:首页 >数据库 >聊一聊 Redis 数据内部存储使用到的数据结构 正文

聊一聊 Redis 数据内部存储使用到的数据结构

来源:亿华互联编辑:数据库时间:2025-11-05 12:23:43
聊一聊 Redis 数据内部存储使用到的数据结构
复制typedef struct redisDb {      dict *dict;                 /* The keyspace for this DB */      dict *expires;              /* Timeout of keys with a timeout set */      dict *blocking_keys;        /* Keys with clients waiting for data (BLPOP)*/      dict *ready_keys;           /* Blocked keys that received a PUSH */      dict *watched_keys;         /* WATCHED keys for MULTI/EXEC CAS */      int id;                     /* Database ID */      long long avg_ttl;          /* Average TTL,聊聊 just for stats */      list *defrag_later;         /* List ofkey names to attempt to defrag one by one, gradually. */ } redisDb;  1.2.3.4.5.6.7.8.9.10.
最新文章

5.3589s , 11637.1953125 kb

Copyright © 2025 Powered by 聊一聊 Redis 数据内部存储使用到的数据结构,亿华互联  滇ICP备2023000592号-16

sitemap

Top